(47.9ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)   (0.1ms) select sqlite_version(*)  (35.2ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.2ms) 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'  (32.7ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")  (40.6ms) 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)  (35.4ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")  (36.6ms) 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)  (40.5ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")  (41.1ms) 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)  (40.8ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) 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'  (33.5ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")  (36.5ms) 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)  (41.2ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")  (0.1ms) 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'  (37.0ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (40.8ms) 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)  (42.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (46.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (34.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')  (42.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117214323') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.1ms) begin transaction  (0.2ms) 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)  SQLite3::SQLException: table "proclaim_posts" already exists: 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.1ms) begin transaction  (0.1ms) 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)  SQLite3::SQLException: table "proclaim_posts" already exists: 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)  (0.0ms) rollback transaction  (36.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (35.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.1ms) begin transaction  (0.4ms) 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)  (0.1ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) 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'  (0.1ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]  (28.1ms) commit transaction Migrating to CreateProclaimComments (20141114235359)  (0.1ms) begin transaction  (1.2ms) 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)   (0.2ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114235359"]]  (36.1ms) commit transaction Migrating to CreateProclaimCommentHierarchies (20141115022230)  (0.1ms) begin transaction  (1.5ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)  (0.5ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.2ms) 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'  (0.4ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id") SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]  (41.8ms) commit transaction Migrating to CreateUsers (20141117214323)  (0.2ms) begin transaction  (1.8ms) 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)  SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]  (40.7ms) commit transaction Migrating to CreateProclaimSubscriptions (20141210234057)  (0.1ms) begin transaction  (0.7ms) 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)   (0.2ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (0.1ms)  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'   (0.5ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141210234057"]]  (30.8ms) commit transaction Migrating to CreateProclaimImages (20141222224905)  (0.1ms) begin transaction  (0.8ms) 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)  (0.1ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]  (49.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.2ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-03 15:21:37.306602"], ["updated_at", "2015-01-03 15:21:37.306602"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 40fdfe27-d041-47d9-9a32-6490442b3110) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (10.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 267.1ms [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Sent mail to email1@example.com (10.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email1@example.com Message-ID: <54a8090197d06_c4ba9132076e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809019624b_c4ba91320674"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809019624b_c4ba91320674 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_54a809019624b_c4ba91320674 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_54a809019624b_c4ba91320674-- [ActiveJob] [ActionMailer::DeliveryJob] [40fdfe27-d041-47d9-9a32-6490442b3110] Performed ActionMailer::DeliveryJob from Inline(mailers) in 278.05ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 15:21:37.640564"], ["updated_at", "2015-01-03 15:21:37.640564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 1], ["published_at", "2015-01-03 15:21:37.645151"], ["state", "published"], ["created_at", "2015-01-03 15:21:37.647192"], ["updated_at", "2015-01-03 15:21:37.647192"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: faa03214-6624-4463-9d0b-03eefb2e9703) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] 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] [faa03214-6624-4463-9d0b-03eefb2e9703] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (4.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 37.5ms [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Sent mail to email1@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email1@example.com Message-ID: <54a80901a91c2_c4ba91320970@Pandora.mail> Subject: New Post: title1 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901a88ab_c4ba9132089a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901a88ab_c4ba9132089a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ****** title1 ****** body1 Written on January 03, 2015 at 03:21 PM UTC by first_name1 last_name1 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_54a80901a88ab_c4ba9132089a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title1

body1
----==_mimepart_54a80901a88ab_c4ba9132089a-- [ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.47ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 15:21:37.699721"], ["updated_at", "2015-01-03 15:21:37.699721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 1], ["published_at", "2015-01-03 15:21:37.701619"], ["state", "published"], ["created_at", "2015-01-03 15:21:37.703089"], ["updated_at", "2015-01-03 15:21:37.703089"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email2@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.707702"], ["updated_at", "2015-01-03 15:21:37.707702"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 47cfdb58-9bfd-4049-ad53-d5574ee622cc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] 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] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.2ms [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Sent mail to email2@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email2@example.com Message-ID: <54a80901b5bc3_c4ba913201134@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901b524a_c4ba9132010af"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901b524a_c4ba9132010af 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_54a80901b524a_c4ba9132010af 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_54a80901b524a_c4ba9132010af-- [ActiveJob] [ActionMailer::DeliveryJob] [47cfdb58-9bfd-4049-ad53-d5574ee622cc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 35.41ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 15:21:37.751147"], ["updated_at", "2015-01-03 15:21:37.751147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title3"], ["body", "body3"], ["author_id", 1], ["published_at", "2015-01-03 15:21:37.753132"], ["state", "published"], ["created_at", "2015-01-03 15:21:37.754745"], ["updated_at", "2015-01-03 15:21:37.754745"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email3@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.759571"], ["updated_at", "2015-01-03 15:21:37.759571"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c2c8872d-d67b-49d7-80ea-31b2eed10416) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] 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] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.5ms [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Sent mail to email3@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email3@example.com Message-ID: <54a80901c22e0_c4ba9132013ed@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901c1999_c4ba913201248"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901c1999_c4ba913201248 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_54a80901c1999_c4ba913201248 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_54a80901c1999_c4ba913201248-- [ActiveJob] [ActionMailer::DeliveryJob] [c2c8872d-d67b-49d7-80ea-31b2eed10416] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.55ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.805770"], ["updated_at", "2015-01-03 15:21:37.805770"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] 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] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 30.3ms [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Sent mail to email3@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email3@example.com Message-ID: <54a80901cf90b_c4ba9132015e4@Pandora.mail> Subject: New Comment On "title3" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901cf07a_c4ba9132014e7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901cf07a_c4ba9132014e7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body1 Written on January 03, 2015 at 03:21 PM UTC by author1 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_54a80901cf07a_c4ba9132014e7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body1
----==_mimepart_54a80901cf07a_c4ba9132014e7-- [ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.11ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 15:21:37.868834"], ["updated_at", "2015-01-03 15:21:37.868834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 1], ["published_at", "2015-01-03 15:21:37.870492"], ["state", "published"], ["created_at", "2015-01-03 15:21:37.871838"], ["updated_at", "2015-01-03 15:21:37.871838"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email4@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.875669"], ["updated_at", "2015-01-03 15:21:37.875669"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d72dedcf-7ce7-460e-8efe-7037faddd0be) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Sent mail to email4@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email4@example.com Message-ID: <54a80901dd63b_c4ba91320178f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901dcd1e_c4ba9132016a7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901dcd1e_c4ba9132016a7 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_54a80901dcd1e_c4ba9132016a7 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_54a80901dcd1e_c4ba9132016a7-- [ActiveJob] [ActionMailer::DeliveryJob] [d72dedcf-7ce7-460e-8efe-7037faddd0be] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.04ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.910937"], ["updated_at", "2015-01-03 15:21:37.910937"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7e30071f-75cf-4ec0-89f5-a8b9b236a101) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] 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] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] 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] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 24.7ms [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Sent mail to email4@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email4@example.com Message-ID: <54a80901e5e30_c4ba91320191a@Pandora.mail> Subject: New Comment On "title4" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901e55cc_c4ba913201860"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901e55cc_c4ba913201860 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body2 Written on January 03, 2015 at 03:21 PM UTC by author2 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_54a80901e55cc_c4ba913201860 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body2
----==_mimepart_54a80901e55cc_c4ba913201860-- [ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.25ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-03 15:21:37.947944"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email5@example.com"], ["created_at", "2015-01-03 15:21:37.953332"], ["updated_at", "2015-01-03 15:21:37.953332"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a5e151c5-1985-4cc9-ad42-08539ba0fcc9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] 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] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.9ms [ActiveJob] [ActionMailer::DeliveryJob] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] Sent mail to email5@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] Date: Sat, 03 Jan 2015 10:21:37 -0500 From: from@example.com To: email5@example.com Message-ID: <54a80901eff9e_c4ba91320213e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80901ef71b_c4ba9132020d6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80901ef71b_c4ba9132020d6 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_54a80901ef71b_c4ba9132020d6 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_54a80901ef71b_c4ba9132020d6-- [ActiveJob] [ActionMailer::DeliveryJob] [a5e151c5-1985-4cc9-ad42-08539ba0fcc9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 15:21:37.987067"], ["updated_at", "2015-01-03 15:21:37.987067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 1], ["created_at", "2015-01-03 15:21:37.989540"], ["updated_at", "2015-01-03 15:21:37.989540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 15:21:37.991193"], ["state", "published"], ["updated_at", "2015-01-03 15:21:37.992305"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 26af9946-3774-4659-a28d-e8c550620874) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] 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] [26af9946-3774-4659-a28d-e8c550620874] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 20.7ms [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Sent mail to email5@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email5@example.com Message-ID: <54a809024949_c4ba9132023f4@Pandora.mail> Subject: New Post: title5 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8090240ec_c4ba913202256"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8090240ec_c4ba913202256 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ****** title5 ****** body5 Written on January 03, 2015 at 03:21 PM UTC by first_name5 last_name5 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_54a8090240ec_c4ba913202256 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title5

body5
----==_mimepart_54a8090240ec_c4ba913202256-- [ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.39ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email6@example.com"], ["created_at", "2015-01-03 15:21:38.025165"], ["updated_at", "2015-01-03 15:21:38.025165"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0416f034-6a84-40fe-8b5b-0e08728ee5e9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] 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] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 38.7ms [ActiveJob] [ActionMailer::DeliveryJob] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] Sent mail to email6@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email6@example.com Message-ID: <54a8090210d59_c4ba91320252f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8090210420_c4ba91320242c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8090210420_c4ba91320242c 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_54a8090210420_c4ba91320242c 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_54a8090210420_c4ba91320242c-- [ActiveJob] [ActionMailer::DeliveryJob] [0416f034-6a84-40fe-8b5b-0e08728ee5e9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.89ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 15:21:38.073511"], ["updated_at", "2015-01-03 15:21:38.073511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 1], ["published_at", "2015-01-03 15:21:38.075071"], ["state", "published"], ["created_at", "2015-01-03 15:21:38.076362"], ["updated_at", "2015-01-03 15:21:38.076362"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9f61be0b-1b30-40e0-aec7-5ac15d78a99a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] 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] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.5ms [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Sent mail to email6@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email6@example.com Message-ID: <54a8090219ba5_c4ba9132027cb@Pandora.mail> Subject: New Post: title6 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80902192e8_c4ba913202630"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80902192e8_c4ba913202630 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ****** title6 ****** body6 Written on January 03, 2015 at 03:21 PM UTC by first_name6 last_name6 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_54a80902192e8_c4ba913202630 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title6

body6
----==_mimepart_54a80902192e8_c4ba913202630-- [ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 25.27ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 15:21:38.112658"], ["updated_at", "2015-01-03 15:21:38.112658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title7"], ["body", "body7"], ["author_id", 1], ["created_at", "2015-01-03 15:21:38.115384"], ["updated_at", "2015-01-03 15:21:38.115384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email7@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:21:38.118474"], ["updated_at", "2015-01-03 15:21:38.118474"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0d230400-de44-4080-9664-0ba1fb100c1e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.7ms [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Sent mail to email7@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email7@example.com Message-ID: <54a80902256c5_c4ba9132029e4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8090224d1c_c4ba9132028f2"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8090224d1c_c4ba9132028f2 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_54a8090224d1c_c4ba9132028f2 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_54a8090224d1c_c4ba9132028f2-- [ActiveJob] [ActionMailer::DeliveryJob] [0d230400-de44-4080-9664-0ba1fb100c1e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.87ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 15:21:38.158351"], ["updated_at", "2015-01-03 15:21:38.158351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title8"], ["body", "body8"], ["author_id", 2], ["created_at", "2015-01-03 15:21:38.160686"], ["updated_at", "2015-01-03 15:21:38.160686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 2], ["created_at", "2015-01-03 15:21:38.162687"], ["updated_at", "2015-01-03 15:21:38.162687"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 20.4ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email8@example.com"], ["created_at", "2015-01-03 15:21:38.198295"], ["updated_at", "2015-01-03 15:21:38.198295"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 79fc0d14-010d-46d8-ba98-6006f7f734cf) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [79fc0d14-010d-46d8-ba98-6006f7f734cf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [79fc0d14-010d-46d8-ba98-6006f7f734cf] 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] [79fc0d14-010d-46d8-ba98-6006f7f734cf] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.2ms [ActiveJob] [ActionMailer::DeliveryJob] [79fc0d14-010d-46d8-ba98-6006f7f734cf] Sent mail to email8@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [79fc0d14-010d-46d8-ba98-6006f7f734cf] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email8@example.com Message-ID: <54a80902378a7_c4ba9132032e3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8090236fb3_c4ba91320318d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8090236fb3_c4ba91320318d 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_54a8090236fb3_c4ba91320318d 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_54a8090236fb3_c4ba91320318d-- [ActiveJob] [ActionMailer::DeliveryJob] [79fc0d14-010d-46d8-ba98-6006f7f734cf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.06ms  (0.1ms) 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.1ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.7ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email9@example.com"], ["created_at", "2015-01-03 15:21:38.262959"], ["updated_at", "2015-01-03 15:21:38.262959"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2e59a599-504b-4c78-b1c8-19ae70d31080) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2e59a599-504b-4c78-b1c8-19ae70d31080] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2e59a599-504b-4c78-b1c8-19ae70d31080] 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] [2e59a599-504b-4c78-b1c8-19ae70d31080] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.3ms [ActiveJob] [ActionMailer::DeliveryJob] [2e59a599-504b-4c78-b1c8-19ae70d31080] Sent mail to email9@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e59a599-504b-4c78-b1c8-19ae70d31080] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email9@example.com Message-ID: <54a8090247a5e_c4ba91320354d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8090247099_c4ba913203421"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8090247099_c4ba913203421 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_54a8090247099_c4ba913203421 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_54a8090247099_c4ba913203421-- [ActiveJob] [ActionMailer::DeliveryJob] [2e59a599-504b-4c78-b1c8-19ae70d31080] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.51ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 15:21:38.297965"], ["updated_at", "2015-01-03 15:21:38.297965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title9"], ["body", "body9"], ["author_id", 1], ["published_at", "2015-01-03 15:21:38.299541"], ["state", "published"], ["created_at", "2015-01-03 15:21:38.300885"], ["updated_at", "2015-01-03 15:21:38.300885"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 74e615ef-111a-46e6-a176-1e53b78fcdfc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] 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] [74e615ef-111a-46e6-a176-1e53b78fcdfc] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] 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] [74e615ef-111a-46e6-a176-1e53b78fcdfc] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.3ms [ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] Sent mail to email9@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email9@example.com Message-ID: <54a809025044b_c4ba913203749@Pandora.mail> Subject: New Post: title9 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809024fc32_c4ba91320368a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809024fc32_c4ba91320368a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ****** title9 ****** body9 Written on January 03, 2015 at 03:21 PM UTC by first_name9 last_name9 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_54a809024fc32_c4ba91320368a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title9

body9
----==_mimepart_54a809024fc32_c4ba91320368a-- [ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.88ms  (0.1ms) 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 (1.3ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 20.0ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email10@example.com"], ["created_at", "2015-01-03 15:21:38.360458"], ["updated_at", "2015-01-03 15:21:38.360458"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a1a439e-5d33-43b1-bdbe-a42f5a24bf12) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.4ms [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Sent mail to email10@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email10@example.com Message-ID: <54a809025eec1_c4ba9132040f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809025e59b_c4ba9132039cb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809025e59b_c4ba9132039cb 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_54a809025e59b_c4ba9132039cb 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_54a809025e59b_c4ba9132039cb-- [ActiveJob] [ActionMailer::DeliveryJob] [4a1a439e-5d33-43b1-bdbe-a42f5a24bf12] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.31ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 15:21:38.396282"], ["updated_at", "2015-01-03 15:21:38.396282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["created_at", "2015-01-03 15:21:38.398684"], ["updated_at", "2015-01-03 15:21:38.398684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:38.403277"], ["updated_at", "2015-01-03 15:21:38.403277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-03 15:21:38.406300"], ["state", "published"], ["updated_at", "2015-01-03 15:21:38.408048"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c0839dde-925e-44c7-8153-87516e0322ca) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] 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] [c0839dde-925e-44c7-8153-87516e0322ca] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.6ms [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Sent mail to email10@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Date: Sat, 03 Jan 2015 10:21:38 -0500 From: from@example.com To: email10@example.com Message-ID: <54a809026a979_c4ba9132042b@Pandora.mail> Subject: New Post: title10 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809026a140_c4ba913204117"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809026a140_c4ba913204117 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title10 ******* Written on January 03, 2015 at 03:21 PM UTC by first_name10 last_name10 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_54a809026a140_c4ba913204117 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title10

----==_mimepart_54a809026a140_c4ba913204117-- [ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.27ms  (0.1ms) 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.4ms  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 15:21:38.465609"], ["updated_at", "2015-01-03 15:21:38.465609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title11"], ["body", "body11"], ["author_id", 1], ["published_at", "2015-01-03 15:21:38.467297"], ["state", "published"], ["created_at", "2015-01-03 15:21:38.468596"], ["updated_at", "2015-01-03 15:21:38.468596"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:38 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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 (4.2ms) Completed 200 OK in 1003ms (Views: 1000.6ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 15:21:39.499000"], ["updated_at", "2015-01-03 15:21:39.499000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 15:21:39.502228"], ["updated_at", "2015-01-03 15:21:39.502228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title12"], ["body", "body12"], ["author_id", 2], ["published_at", "2015-01-03 15:21:39.503495"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.505135"], ["updated_at", "2015-01-03 15:21:39.505135"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) 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.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 15:21:39.838907"], ["updated_at", "2015-01-03 15:21:39.838907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title13"], ["body", "Beatae ullam iste libero quis aperiam quasi. Repudiandae fuga sapiente quae cumque sit quis officiis. Sed odit id consequatur ex. Illum magni reprehenderit. In ut sint. Quia impedit perferendis ut. Explicabo placeat corrupti. Delectus fuga quidem qui libero pariatur. Omnis et voluptatum aperiam sequi. Voluptas dignissimos illum repellendus voluptate. Quas qui incidunt earum odio expedita. Sint nam accusantium atque quasi itaque velit. Atque ut repellendus voluptatum. Qui pariatur incidunt qui et nostrum cumque. Rerum doloremque sed vero non eum. Est delectus magni praesentium blanditiis. Atque officiis iure est id deserunt vel asperiores. Facere sit inventore eaque voluptatem non. Qui ad quae. Ex consequatur odio a. Nam perspiciatis praesentium quam voluptate ea aut. Omnis laborum sapiente cum et voluptates adipisci. Aspernatur eum natus iusto blanditiis quibusdam fuga. Voluptates impedit culpa magni. Deserunt illo aut necessitatibus qui mollitia dolor consequatur. Laudantium officia et quos. Facilis dolore inventore provident quia eos exercitationem. Quos perspiciatis delectus. Soluta quis qui non quod. Odit ut voluptatem aliquid sunt perspiciatis accusamus voluptas. Est debitis ut et veniam eveniet velit dolor. Fuga accusantium ad ab possimus tempore. Eaque inventore fugit. Consequatur repellat omnis dolor placeat odit. Praesentium quia ut minima. Et quisquam sed eos enim laborum et explicabo. Id aut necessitatibus. Doloribus est recusandae eius qui nisi aliquam. Occaecati laborum provident voluptatem nihil excepturi. Similique esse incidunt optio velit consectetur impedit ex. Eius inventore magnam est suscipit repudiandae et. Sapiente veritatis et ullam odio ut magnam et. Quas excepturi ducimus. Id perspiciatis rerum occaecati assumenda aliquid. Quibusdam eos fugiat est pariatur perferendis. Libero similique sequi dignissimos eius ipsa rerum. Odit ullam quis alias aut. Dolorem nihil nostrum quam non doloremque neque. Aut sint dolorem eaque. Ut alias et qui inventore impedit velit nostrum. Porro quaerat ea harum ut."], ["author_id", 1], ["published_at", "2015-01-03 15:21:39.840639"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.842142"], ["updated_at", "2015-01-03 15:21:39.842142"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 15:21:39.845764"], ["updated_at", "2015-01-03 15:21:39.845764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-03 15:21:39.847012"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.848252"], ["updated_at", "2015-01-03 15:21:39.848252"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) 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.2ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 15:21:39.866691"], ["updated_at", "2015-01-03 15:21:39.866691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title15"], ["body", "body13"], ["author_id", 1], ["published_at", "2015-01-03 15:21:39.868507"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.869891"], ["updated_at", "2015-01-03 15:21:39.869891"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 15:21:39.873462"], ["updated_at", "2015-01-03 15:21:39.873462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title16"], ["body", "body14"], ["author_id", 2], ["published_at", "2015-01-03 15:21:39.874738"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.876052"], ["updated_at", "2015-01-03 15:21:39.876052"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) 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.9ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) 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 10:21:39 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 15:21:39.905649"], ["updated_at", "2015-01-03 15:21:39.905649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title17"], ["body", "body15"], ["author_id", 1], ["published_at", "2015-01-03 15:21:39.907335"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.908778"], ["updated_at", "2015-01-03 15:21:39.908778"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:39 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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 (25.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (37.5ms) Completed 200 OK in 42ms (Views: 40.3ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 15:21:39.968992"], ["updated_at", "2015-01-03 15:21:39.968992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title18"], ["body", "body16"], ["author_id", 1], ["published_at", "2015-01-03 15:21:39.970926"], ["state", "published"], ["created_at", "2015-01-03 15:21:39.972372"], ["updated_at", "2015-01-03 15:21:39.972372"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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 (2.9ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 15:21:39.988020"], ["updated_at", "2015-01-03 15:21:39.988020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 15:21:39.990978"], ["updated_at", "2015-01-03 15:21:39.990978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title19"], ["body", "body17"], ["author_id", 2], ["created_at", "2015-01-03 15:21:39.993380"], ["updated_at", "2015-01-03 15:21:39.993380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:39.998455"], ["updated_at", "2015-01-03 15:21:39.998455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 15:21:40.002337"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 15:21:40.008502"], ["updated_at", "2015-01-03 15:21:40.008502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 15:21:40.011217"], ["updated_at", "2015-01-03 15:21:40.011217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title20"], ["body", "body18"], ["author_id", 2], ["published_at", "2015-01-03 15:21:40.012399"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.013774"], ["updated_at", "2015-01-03 15:21:40.013774"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) 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.0ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 15:21:40.030284"], ["updated_at", "2015-01-03 15:21:40.030284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 15:21:40.045204"], ["updated_at", "2015-01-03 15:21:40.045204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "Doloribus dolor occaecati. Autem repellendus quis explicabo. Cupiditate architecto dolor rerum eum in porro. Eos corporis aliquid illo. Cum eum omnis vel et. Qui id quidem aut sit voluptas magni. Molestiae id beatae vero nihil repellat fugit facilis. Aut quas autem. Id dolore natus culpa iure. Eum aut et delectus. Ipsum cumque recusandae excepturi reprehenderit autem tempore et. Sed consequatur nulla et animi earum. Quidem rerum corporis. Libero corrupti at quam id. Ea nemo nisi blanditiis repellat. Vitae aut consequatur quidem distinctio quia mollitia nihil. Quae blanditiis eaque asperiores. Vel facilis et impedit repellendus ut officiis. Eaque libero enim veniam voluptas. Illum deserunt necessitatibus ut laboriosam. Nisi omnis voluptatem nesciunt sit. Harum eos non quia. Similique eveniet beatae. Minus beatae vitae. Et aut eum delectus atque repudiandae praesentium. Aut officia ut eveniet. Nam est eos error dolorum. Qui occaecati consequatur. Perspiciatis consectetur et iste aspernatur. Enim molestiae dignissimos unde sit ut sed. Quis pariatur praesentium. Necessitatibus enim facere qui nihil veritatis neque. Perferendis incidunt aut consequatur molestias aliquam et ipsum. Qui ut et necessitatibus qui. Distinctio porro aut consequatur vel sapiente aliquam. Beatae dolorem voluptatibus natus molestiae. Sed ut rerum sit ipsum repudiandae. Tempora sed minus alias harum. Quaerat ea est tempore praesentium. Natus optio sunt quaerat. Nesciunt et architecto voluptatibus sequi. Provident vero quasi autem reiciendis pariatur vel. Ratione rerum quis impedit quidem in explicabo vero. Delectus nihil ea animi molestias. Laboriosam maiores tempora nisi iure quia. Quis tenetur excepturi ipsam nulla omnis vitae. Nemo cum eum consequatur et officia. Consequuntur nisi quibusdam fugiat nobis dolore. Expedita suscipit sed possimus. Expedita rerum laudantium quia velit rerum assumenda. Ab atque facilis id quia."], ["author_id", 1], ["published_at", "2015-01-03 15:21:40.046803"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.048274"], ["updated_at", "2015-01-03 15:21:40.048274"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 15:21:40.052050"], ["updated_at", "2015-01-03 15:21:40.052050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title22"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-03 15:21:40.053329"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.054685"], ["updated_at", "2015-01-03 15:21:40.054685"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) 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.8ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 15:21:40.073797"], ["updated_at", "2015-01-03 15:21:40.073797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title23"], ["body", "body19"], ["author_id", 1], ["published_at", "2015-01-03 15:21:40.075473"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.076868"], ["updated_at", "2015-01-03 15:21:40.076868"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 15:21:40.080307"], ["updated_at", "2015-01-03 15:21:40.080307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title24"], ["body", "body20"], ["author_id", 2], ["published_at", "2015-01-03 15:21:40.081589"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.082943"], ["updated_at", "2015-01-03 15:21:40.082943"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) 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.9ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 15:21:40.102966"], ["updated_at", "2015-01-03 15:21:40.102966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 15:21:40.106492"], ["updated_at", "2015-01-03 15:21:40.106492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title25"], ["body", "body21"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.108701"], ["updated_at", "2015-01-03 15:21:40.108701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 15:21:40.133604"], ["updated_at", "2015-01-03 15:21:40.133604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 15:21:40.137200"], ["updated_at", "2015-01-03 15:21:40.137200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title26"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.139435"], ["updated_at", "2015-01-03 15:21:40.139435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body22", "title"=>"title26"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 15:21:40.145969"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-03 15:21:40.148915"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 15:21:40.165666"], ["updated_at", "2015-01-03 15:21:40.165666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 15:21:40.169806"], ["updated_at", "2015-01-03 15:21:40.169806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title27"], ["body", "body23"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.171983"], ["updated_at", "2015-01-03 15:21:40.171983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (9.2ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 15:21:40.192451"], ["updated_at", "2015-01-03 15:21:40.192451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title28"], ["body", "body24"], ["author_id", 1], ["published_at", "2015-01-03 15:21:40.194150"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.195453"], ["updated_at", "2015-01-03 15:21:40.195453"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.1ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 15:21:40.211178"], ["updated_at", "2015-01-03 15:21:40.211178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title29"], ["body", "body25"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.213656"], ["updated_at", "2015-01-03 15:21:40.213656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 15:21:40.219618"], ["updated_at", "2015-01-03 15:21:40.219618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 15:21:40.222864"], ["updated_at", "2015-01-03 15:21:40.222864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title30"], ["body", "body26"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.224981"], ["updated_at", "2015-01-03 15:21:40.224981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 15:21:40.227426"], ["updated_at", "2015-01-03 15:21:40.227426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body27"], ["author_id", 3], ["published_at", "2015-01-03 15:21:40.228559"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.229776"], ["updated_at", "2015-01-03 15:21:40.229776"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (16.1ms) Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 15:21:40.255249"], ["updated_at", "2015-01-03 15:21:40.255249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title32"], ["body", "body28"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.257941"], ["updated_at", "2015-01-03 15:21:40.257941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 15:21:40.268902"], ["updated_at", "2015-01-03 15:21:40.268902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 15:21:40.272897"], ["updated_at", "2015-01-03 15:21:40.272897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title33"], ["body", "body29"], ["author_id", 2], ["published_at", "2015-01-03 15:21:40.274298"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.275725"], ["updated_at", "2015-01-03 15:21:40.275725"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.2ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 15:21:40.291231"], ["updated_at", "2015-01-03 15:21:40.291231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body30"], ["author_id", 3], ["created_at", "2015-01-03 15:21:40.293491"], ["updated_at", "2015-01-03 15:21:40.293491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) 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 (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 15:21:40.306324"], ["updated_at", "2015-01-03 15:21:40.306324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 15:21:40.309812"], ["updated_at", "2015-01-03 15:21:40.309812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title35"], ["body", "body31"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.311977"], ["updated_at", "2015-01-03 15:21:40.311977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title35"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:40.324187"], ["updated_at", "2015-01-03 15:21:40.324187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 15:21:40.328239"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 13ms (ActiveRecord: 0.7ms) Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 15:21:40.339332"], ["updated_at", "2015-01-03 15:21:40.339332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 15:21:40.342711"], ["updated_at", "2015-01-03 15:21:40.342711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body32", "title"=>"title36"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title36"], ["body", "body32"], ["author_id", 1], ["published_at", "2015-01-03 15:21:40.348730"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.351386"], ["updated_at", "2015-01-03 15:21:40.351386"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 15:21:40.361860"], ["updated_at", "2015-01-03 15:21:40.361860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 15:21:40.365853"], ["updated_at", "2015-01-03 15:21:40.365853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title37"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.378017"], ["updated_at", "2015-01-03 15:21:40.378017"]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:40.379917"], ["updated_at", "2015-01-03 15:21:40.379917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 15:21:40.421590"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 53ms (ActiveRecord: 0.9ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.0ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 15:21:40.431381"], ["updated_at", "2015-01-03 15:21:40.431381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (6.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 15:21:40.450002"], ["updated_at", "2015-01-03 15:21:40.450002"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body34", "title"=>"title38"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 15:21:40.468767"], ["updated_at", "2015-01-03 15:21:40.468767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title39"], ["body", "body35"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.471625"], ["updated_at", "2015-01-03 15:21:40.471625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 15:21:40.481631"], ["updated_at", "2015-01-03 15:21:40.481631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 15:21:40.485365"], ["updated_at", "2015-01-03 15:21:40.485365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body36", "title"=>"title40"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body36"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.494620"], ["updated_at", "2015-01-03 15:21:40.494620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 15:21:40.505548"], ["updated_at", "2015-01-03 15:21:40.505548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 15:21:40.509364"], ["updated_at", "2015-01-03 15:21:40.509364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title41"], ["body", "body37"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.511594"], ["updated_at", "2015-01-03 15:21:40.511594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body37", "title"=>"title41"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 15:21:40.529497"], ["updated_at", "2015-01-03 15:21:40.529497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body38"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.532186"], ["updated_at", "2015-01-03 15:21:40.532186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-03 15:21:40.535100"], ["updated_at", "2015-01-03 15:21:40.535100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title43"], ["body", "body39"], ["author_id", 2], ["published_at", "2015-01-03 15:21:40.536362"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.537692"], ["updated_at", "2015-01-03 15:21:40.537692"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 15:21:40.552517"], ["updated_at", "2015-01-03 15:21:40.552517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title44"], ["body", "body40"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.555182"], ["updated_at", "2015-01-03 15:21:40.555182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body40", "title"=>"title44"}, "id"=>"1"} Proclaim::Post Load (0.1ms) 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 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 15:21:40.566583"], ["updated_at", "2015-01-03 15:21:40.566583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 15:21:40.569638"], ["updated_at", "2015-01-03 15:21:40.569638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body41"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.572053"], ["updated_at", "2015-01-03 15:21:40.572053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 15:21:40.574702"], ["updated_at", "2015-01-03 15:21:40.574702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title46"], ["body", "body42"], ["author_id", 3], ["published_at", "2015-01-03 15:21:40.575849"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.577229"], ["updated_at", "2015-01-03 15:21:40.577229"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-03 15:21:40.581132"], ["updated_at", "2015-01-03 15:21:40.581132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-03 15:21:40.584073"], ["updated_at", "2015-01-03 15:21:40.584073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title47"], ["body", "body43"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.586852"], ["updated_at", "2015-01-03 15:21:40.586852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 15:21:40.589623"], ["updated_at", "2015-01-03 15:21:40.589623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title48"], ["body", "body44"], ["author_id", 3], ["published_at", "2015-01-03 15:21:40.590967"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.592214"], ["updated_at", "2015-01-03 15:21:40.592214"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-03 15:21:40.597698"], ["updated_at", "2015-01-03 15:21:40.597698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 15:21:40.600065"], ["updated_at", "2015-01-03 15:21:40.600065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body45"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.602246"], ["updated_at", "2015-01-03 15:21:40.602246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 15:21:40.605021"], ["updated_at", "2015-01-03 15:21:40.605021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-03 15:21:40.607391"], ["updated_at", "2015-01-03 15:21:40.607391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title50"], ["body", "body46"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.609602"], ["updated_at", "2015-01-03 15:21:40.609602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 15:21:40.612551"], ["updated_at", "2015-01-03 15:21:40.612551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title51"], ["body", "body47"], ["author_id", 3], ["published_at", "2015-01-03 15:21:40.613976"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.615392"], ["updated_at", "2015-01-03 15:21:40.615392"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 15:21:40.619069"], ["updated_at", "2015-01-03 15:21:40.619069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 15:21:40.622342"], ["updated_at", "2015-01-03 15:21:40.622342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title52"], ["body", "body48"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.624469"], ["updated_at", "2015-01-03 15:21:40.624469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-03 15:21:40.627075"], ["updated_at", "2015-01-03 15:21:40.627075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body49"], ["author_id", 3], ["published_at", "2015-01-03 15:21:40.628286"], ["state", "published"], ["created_at", "2015-01-03 15:21:40.629500"], ["updated_at", "2015-01-03 15:21:40.629500"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 15:21:40.703171"], ["updated_at", "2015-01-03 15:21:40.703171"]]  (51.6ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 10:21:45 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:21:45 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:21:45 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-03 10:21:45 -0500  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:46 -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 (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (51.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (32.3ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (28.7ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.6ms) DELETE FROM sqlite_sequence where name = 'users';  (36.2ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.9ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (1.3ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 15:21:46.505403"], ["updated_at", "2015-01-03 15:21:46.505403"]]  (46.8ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 10:21:46 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:47 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"}  (0.1ms) begin transaction SQL (0.7ms) 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-03 15:21:47.225111"], ["updated_at", "2015-01-03 15:21:47.225111"]]  (48.8ms) commit transaction Redirected to http://127.0.0.1:39451/proclaim/posts/1 Completed 302 Found in 60ms (ActiveRecord: 49.6ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:47 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.5ms) Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts"  (38.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (23.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (29.2ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.1ms) DELETE FROM sqlite_sequence where name = 'users';  (19.5ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (24.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-03 15:21:47.838862"], ["updated_at", "2015-01-03 15:21:47.838862"]]  (30.9ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 10:21:47 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:48 -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 (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (29.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.1ms) DELETE FROM sqlite_sequence where name = 'users';  (37.5ms) DELETE FROM "proclaim_subscriptions";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (30.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 15:21:48.735726"], ["updated_at", "2015-01-03 15:21:48.735726"]]  (39.7ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 15:21:48.783508"], ["updated_at", "2015-01-03 15:21:48.783508"]]  (36.8ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title54"], ["body", "body50"], ["author_id", 2], ["created_at", "2015-01-03 15:21:48.827271"], ["updated_at", "2015-01-03 15:21:48.827271"]]  (34.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:48.874767"], ["updated_at", "2015-01-03 15:21:48.874767"]]  (33.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-03 15:21:48.916413"], ["id", 1]]  (32.0ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 10:21:48 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (2.7ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms) Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title54", "body"=>"

test

\r\n\t\t


", "images_attributes"=>{"1"=>{"id"=>"1", "_destroy"=>"true"}}}, "commit"=>"Update Post", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1 [["post_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

\r\n\t\t


"], ["updated_at", "2015-01-03 15:21:49.522874"], ["id", 1]] SQL (0.3ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (52.2ms) commit transaction Redirected to http://127.0.0.1:39451/proclaim/posts/1 Completed 302 Found in 67ms (ActiveRecord: 53.3ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:49 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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 (7.8ms) Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.7ms)  (44.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.3ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (42.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.8ms) DELETE FROM sqlite_sequence where name = 'users';  (36.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 15:21:50.160647"], ["updated_at", "2015-01-03 15:21:50.160647"]]  (39.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 15:21:50.213745"], ["updated_at", "2015-01-03 15:21:50.213745"]]  (34.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title55"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-03 15:21:50.251054"], ["updated_at", "2015-01-03 15:21:50.251054"]]  (36.4ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 10:21:50 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.7ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (3.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (3.9ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.9ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 10:21:50 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420298510-3147-9529/test.jpg"} Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (35.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (32.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.7ms) DELETE FROM sqlite_sequence where name = 'users';  (30.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (28.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-03 15:21:50.942401"], ["updated_at", "2015-01-03 15:21:50.942401"]]  (28.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 15:21:50.975505"], ["updated_at", "2015-01-03 15:21:50.975505"]]  (25.1ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title56"], ["body", "body51"], ["author_id", 2], ["created_at", "2015-01-03 15:21:51.006440"], ["updated_at", "2015-01-03 15:21:51.006440"]]  (25.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:51.042733"], ["updated_at", "2015-01-03 15:21:51.042733"]]  (34.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 15:21:51.087323"], ["id", 1]]  (34.8ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 10:21:51 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (5.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (5.8ms) Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.5ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 10:21:51 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:51 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.0ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)  (38.7ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (28.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.0ms) DELETE FROM sqlite_sequence where name = 'users';  (36.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 15:21:51.988329"], ["updated_at", "2015-01-03 15:21:51.988329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title57"], ["body", "body52"], ["author_id", 1], ["created_at", "2015-01-03 15:21:51.991765"], ["updated_at", "2015-01-03 15:21:51.991765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author4"], ["body", "body4"], ["post_id", 1], ["created_at", "2015-01-03 15:21:51.994087"], ["updated_at", "2015-01-03 15:21:51.994087"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 15:21:52.001301"], ["updated_at", "2015-01-03 15:21:52.001301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title58"], ["body", "body53"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.003788"], ["updated_at", "2015-01-03 15:21:52.003788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email11@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (8.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (10.6ms) Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email12@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email12@example.com"], ["created_at", "2015-01-03 15:21:52.058857"], ["updated_at", "2015-01-03 15:21:52.058857"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f7048544-da19-4c49-a796-4b015dc59b89) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.4ms [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Sent mail to email12@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email12@example.com Message-ID: <54a8091016f19_c4ba9132045f4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80910165ea_c4ba91320448"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80910165ea_c4ba91320448 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_54a80910165ea_c4ba91320448 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_54a80910165ea_c4ba91320448-- [ActiveJob] [ActionMailer::DeliveryJob] [f7048544-da19-4c49-a796-4b015dc59b89] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.31ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 43ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 15:21:52.104812"], ["updated_at", "2015-01-03 15:21:52.104812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email13@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email13@example.com"], ["created_at", "2015-01-03 15:21:52.113376"], ["updated_at", "2015-01-03 15:21:52.113376"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3c0a5f02-b119-4982-9786-d68aeffe0790) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3c0a5f02-b119-4982-9786-d68aeffe0790] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3c0a5f02-b119-4982-9786-d68aeffe0790] 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] [3c0a5f02-b119-4982-9786-d68aeffe0790] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.8ms [ActiveJob] [ActionMailer::DeliveryJob] [3c0a5f02-b119-4982-9786-d68aeffe0790] Sent mail to email13@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [3c0a5f02-b119-4982-9786-d68aeffe0790] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email13@example.com Message-ID: <54a80910237c5_c4ba9132047cf@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8091022e97_c4ba913204674"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8091022e97_c4ba913204674 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_54a8091022e97_c4ba913204674 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_54a8091022e97_c4ba913204674-- [ActiveJob] [ActionMailer::DeliveryJob] [3c0a5f02-b119-4982-9786-d68aeffe0790] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.81ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 40ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email14@example.com"], ["created_at", "2015-01-03 15:21:52.156842"], ["updated_at", "2015-01-03 15:21:52.156842"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6675d51b-d8da-4631-a029-05bf16dd7de8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6675d51b-d8da-4631-a029-05bf16dd7de8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6675d51b-d8da-4631-a029-05bf16dd7de8] 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] [6675d51b-d8da-4631-a029-05bf16dd7de8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.1ms [ActiveJob] [ActionMailer::DeliveryJob] [6675d51b-d8da-4631-a029-05bf16dd7de8] Sent mail to email14@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6675d51b-d8da-4631-a029-05bf16dd7de8] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email14@example.com Message-ID: <54a809102e476_c4ba9132049ca@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809102dbfb_c4ba91320484d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809102dbfb_c4ba91320484d 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_54a809102dbfb_c4ba91320484d 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_54a809102dbfb_c4ba91320484d-- [ActiveJob] [ActionMailer::DeliveryJob] [6675d51b-d8da-4631-a029-05bf16dd7de8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.78ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-03 15:21:52.193709"], ["updated_at", "2015-01-03 15:21:52.193709"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0d453bf8-b962-48ea-aff1-e0c7aa293fff) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] 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] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.4ms [ActiveJob] [ActionMailer::DeliveryJob] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] Sent mail to email15@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email15@example.com Message-ID: <54a8091036cb7_c4ba913205110@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809103643f_c4ba9132050bf"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809103643f_c4ba9132050bf 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_54a809103643f_c4ba9132050bf 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_54a809103643f_c4ba9132050bf-- [ActiveJob] [ActionMailer::DeliveryJob] [0d453bf8-b962-48ea-aff1-e0c7aa293fff] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-03 15:21:52.248151"], ["updated_at", "2015-01-03 15:21:52.248151"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6eb56c9d-0f48-4856-9cdb-f6f76feed2c0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Sent mail to email16@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email16@example.com Message-ID: <54a8091044541_c4ba9132053f6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8091043ca7_c4ba913205258"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8091043ca7_c4ba913205258 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_54a8091043ca7_c4ba913205258 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_54a8091043ca7_c4ba913205258-- [ActiveJob] [ActionMailer::DeliveryJob] [6eb56c9d-0f48-4856-9cdb-f6f76feed2c0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.36ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-03 15:21:52.284021"], ["updated_at", "2015-01-03 15:21:52.284021"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2022694d-18fc-40d6-91ec-e832e751b91d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [2022694d-18fc-40d6-91ec-e832e751b91d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [2022694d-18fc-40d6-91ec-e832e751b91d] 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] [2022694d-18fc-40d6-91ec-e832e751b91d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.9ms [ActiveJob] [ActionMailer::DeliveryJob] [2022694d-18fc-40d6-91ec-e832e751b91d] Sent mail to email17@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2022694d-18fc-40d6-91ec-e832e751b91d] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email17@example.com Message-ID: <54a809104c84e_c4ba913205522@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809104c00b_c4ba91320549"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809104c00b_c4ba91320549 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_54a809104c00b_c4ba91320549 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_54a809104c00b_c4ba91320549-- [ActiveJob] [ActionMailer::DeliveryJob] [2022694d-18fc-40d6-91ec-e832e751b91d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.54ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (6.5ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 15:21:52.346687"], ["updated_at", "2015-01-03 15:21:52.346687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 15:21:52.350979"], ["updated_at", "2015-01-03 15:21:52.350979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title59"], ["body", "body54"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.353283"], ["updated_at", "2015-01-03 15:21:52.353283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author8", "body"=>"body7", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body7"], ["author", "author8"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.363234"], ["updated_at", "2015-01-03 15:21:52.363234"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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 (12.2ms) 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 (26.1ms) Completed 200 OK in 48ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 15:21:52.410349"], ["updated_at", "2015-01-03 15:21:52.410349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "body55"], ["author_id", 3], ["published_at", "2015-01-03 15:21:52.411707"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.413043"], ["updated_at", "2015-01-03 15:21:52.413043"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author9", "body"=>"body8", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body8"], ["author", "author9"], ["post_id", 2], ["created_at", "2015-01-03 15:21:52.418677"], ["updated_at", "2015-01-03 15:21:52.418677"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) 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 (3.9ms) 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/_comment.html.erb (12.6ms) Completed 200 OK in 21ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 15:21:52.441797"], ["updated_at", "2015-01-03 15:21:52.441797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title61"], ["body", "body56"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.444368"], ["updated_at", "2015-01-03 15:21:52.444368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body9"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.446622"], ["updated_at", "2015-01-03 15:21:52.446622"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author11", "body"=>"body10", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 15:21:52.462350"], ["updated_at", "2015-01-03 15:21:52.462350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title62"], ["body", "body57"], ["author_id", 2], ["published_at", "2015-01-03 15:21:52.463633"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.465048"], ["updated_at", "2015-01-03 15:21:52.465048"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author12"], ["body", "body11"], ["post_id", 2], ["created_at", "2015-01-03 15:21:52.468324"], ["updated_at", "2015-01-03 15:21:52.468324"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author13", "body"=>"body12", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body12"], ["author", "author13"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-03 15:21:52.478044"], ["updated_at", "2015-01-03 15:21:52.478044"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.1ms) INSERT 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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 (6.0ms) Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 15:21:52.499770"], ["updated_at", "2015-01-03 15:21:52.499770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title63"], ["body", "body58"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.502317"], ["updated_at", "2015-01-03 15:21:52.502317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author14", "body"=>"body13", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 15:21:52.512283"], ["updated_at", "2015-01-03 15:21:52.512283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title64"], ["body", "body59"], ["author_id", 2], ["published_at", "2015-01-03 15:21:52.513552"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.514826"], ["updated_at", "2015-01-03 15:21:52.514826"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author15", "body"=>"body14", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body14"], ["author", "author15"], ["post_id", 2], ["created_at", "2015-01-03 15:21:52.520635"], ["updated_at", "2015-01-03 15:21:52.520635"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.3ms) Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 15:21:52.539616"], ["updated_at", "2015-01-03 15:21:52.539616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title65"], ["body", "body60"], ["author_id", 1], ["published_at", "2015-01-03 15:21:52.541336"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.542654"], ["updated_at", "2015-01-03 15:21:52.542654"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body15"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.545628"], ["updated_at", "2015-01-03 15:21:52.545628"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author17", "body"=>"body16", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 15:21:52.562157"], ["updated_at", "2015-01-03 15:21:52.562157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 15:21:52.566325"], ["updated_at", "2015-01-03 15:21:52.566325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title66"], ["body", "body61"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.568692"], ["updated_at", "2015-01-03 15:21:52.568692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author18"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.571457"], ["updated_at", "2015-01-03 15:21:52.571457"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 15:21:52.586376"], ["updated_at", "2015-01-03 15:21:52.586376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 15:21:52.590807"], ["updated_at", "2015-01-03 15:21:52.590807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body62"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.593213"], ["updated_at", "2015-01-03 15:21:52.593213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body18"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.595556"], ["updated_at", "2015-01-03 15:21:52.595556"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author19", "body"=>"body18", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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.0ms) 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 (12.5ms) Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 15:21:52.624448"], ["updated_at", "2015-01-03 15:21:52.624448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 15:21:52.628234"], ["updated_at", "2015-01-03 15:21:52.628234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body63"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.630357"], ["updated_at", "2015-01-03 15:21:52.630357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author20"], ["body", "body19"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.632548"], ["updated_at", "2015-01-03 15:21:52.632548"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author21", "body"=>"body20", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body20"], ["author", "author21"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:21:52.645066"], ["updated_at", "2015-01-03 15:21:52.645066"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.0ms) 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.0ms) 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/_comment.html.erb (12.5ms) Completed 200 OK in 25ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 15:21:52.672519"], ["updated_at", "2015-01-03 15:21:52.672519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body64"], ["author_id", 3], ["published_at", "2015-01-03 15:21:52.673829"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.675158"], ["updated_at", "2015-01-03 15:21:52.675158"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body21"], ["post_id", 2], ["created_at", "2015-01-03 15:21:52.718955"], ["updated_at", "2015-01-03 15:21:52.718955"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author23", "body"=>"body22", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body22"], ["author", "author23"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-03 15:21:52.728228"], ["updated_at", "2015-01-03 15:21:52.728228"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.2ms) INSERT 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) 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 (12.0ms) Completed 200 OK in 23ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 15:21:52.757132"], ["updated_at", "2015-01-03 15:21:52.757132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title70"], ["body", "body65"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.762063"], ["updated_at", "2015-01-03 15:21:52.762063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.764758"], ["updated_at", "2015-01-03 15:21:52.764758"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author24", "body"=>"body23", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 15:21:52.778169"], ["updated_at", "2015-01-03 15:21:52.778169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title71"], ["body", "body66"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.781268"], ["updated_at", "2015-01-03 15:21:52.781268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.784108"], ["updated_at", "2015-01-03 15:21:52.784108"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 15:21:52.797711"], ["updated_at", "2015-01-03 15:21:52.797711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title72"], ["body", "body67"], ["author_id", 1], ["published_at", "2015-01-03 15:21:52.799505"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.800980"], ["updated_at", "2015-01-03 15:21:52.800980"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author26", "body"=>"body25", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 15:21:52.814780"], ["updated_at", "2015-01-03 15:21:52.814780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email18@example.com"], ["created_at", "2015-01-03 15:21:52.818095"], ["updated_at", "2015-01-03 15:21:52.818095"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 10e9657f-2451-446b-b3b9-a566c6b294e8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [10e9657f-2451-446b-b3b9-a566c6b294e8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [10e9657f-2451-446b-b3b9-a566c6b294e8] 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] [10e9657f-2451-446b-b3b9-a566c6b294e8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.9ms [ActiveJob] [ActionMailer::DeliveryJob] [10e9657f-2451-446b-b3b9-a566c6b294e8] Sent mail to email18@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [10e9657f-2451-446b-b3b9-a566c6b294e8] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email18@example.com Message-ID: <54a80910cfc7e_c4ba9132057fd@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80910cf31f_c4ba91320563"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80910cf31f_c4ba91320563 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_54a80910cf31f_c4ba91320563 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_54a80910cf31f_c4ba91320563-- [ActiveJob] [ActionMailer::DeliveryJob] [10e9657f-2451-446b-b3b9-a566c6b294e8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.69ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 15:21:52.855536"], ["updated_at", "2015-01-03 15:21:52.855536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 15:21:52.858531"], ["updated_at", "2015-01-03 15:21:52.858531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title73"], ["body", "body68"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.860644"], ["updated_at", "2015-01-03 15:21:52.860644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 15:21:52.863686"], ["updated_at", "2015-01-03 15:21:52.863686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title74"], ["body", "body69"], ["author_id", 3], ["published_at", "2015-01-03 15:21:52.864846"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.866154"], ["updated_at", "2015-01-03 15:21:52.866154"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 15:21:52.869789"], ["updated_at", "2015-01-03 15:21:52.869789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title75"], ["body", "body70"], ["author_id", 4], ["created_at", "2015-01-03 15:21:52.871805"], ["updated_at", "2015-01-03 15:21:52.871805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 15:21:52.875024"], ["updated_at", "2015-01-03 15:21:52.875024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title76"], ["body", "body71"], ["author_id", 5], ["published_at", "2015-01-03 15:21:52.876560"], ["state", "published"], ["created_at", "2015-01-03 15:21:52.878026"], ["updated_at", "2015-01-03 15:21:52.878026"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 15:21:52.881705"], ["updated_at", "2015-01-03 15:21:52.881705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email25@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email25@example.com"], ["created_at", "2015-01-03 15:21:52.884332"], ["updated_at", "2015-01-03 15:21:52.884332"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6d79452d-6ed4-4c96-8c8e-7583d5ba47b1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] 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] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms [ActiveJob] [ActionMailer::DeliveryJob] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] Sent mail to email25@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email25@example.com Message-ID: <54a80910dfb96_c4ba9132059f9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80910df272_c4ba913205875"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80910df272_c4ba913205875 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_54a80910df272_c4ba913205875 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_54a80910df272_c4ba913205875-- [ActiveJob] [ActionMailer::DeliveryJob] [6d79452d-6ed4-4c96-8c8e-7583d5ba47b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.18ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 15:21:52.921016"], ["updated_at", "2015-01-03 15:21:52.921016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email26@example.com"], ["created_at", "2015-01-03 15:21:52.923812"], ["updated_at", "2015-01-03 15:21:52.923812"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 308a70de-b454-456c-a08e-08636c9843f9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [308a70de-b454-456c-a08e-08636c9843f9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [308a70de-b454-456c-a08e-08636c9843f9] 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] [308a70de-b454-456c-a08e-08636c9843f9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.5ms [ActiveJob] [ActionMailer::DeliveryJob] [308a70de-b454-456c-a08e-08636c9843f9] Sent mail to email26@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [308a70de-b454-456c-a08e-08636c9843f9] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email26@example.com Message-ID: <54a80910e9a66_c4ba9132061ad@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80910e91d9_c4ba9132060bc"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80910e91d9_c4ba9132060bc 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_54a80910e91d9_c4ba9132060bc 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_54a80910e91d9_c4ba9132060bc-- [ActiveJob] [ActionMailer::DeliveryJob] [308a70de-b454-456c-a08e-08636c9843f9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.3ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-03 15:21:52.961580"], ["updated_at", "2015-01-03 15:21:52.961580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email27@example.com"], ["created_at", "2015-01-03 15:21:52.964603"], ["updated_at", "2015-01-03 15:21:52.964603"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2446e0c0-395b-4e97-b501-f6f58eaabf49) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2446e0c0-395b-4e97-b501-f6f58eaabf49] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2446e0c0-395b-4e97-b501-f6f58eaabf49] 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] [2446e0c0-395b-4e97-b501-f6f58eaabf49] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.5ms [ActiveJob] [ActionMailer::DeliveryJob] [2446e0c0-395b-4e97-b501-f6f58eaabf49] Sent mail to email27@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [2446e0c0-395b-4e97-b501-f6f58eaabf49] Date: Sat, 03 Jan 2015 10:21:52 -0500 From: from@example.com To: email27@example.com Message-ID: <54a80910f38ac_c4ba91320638@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80910f2fb2_c4ba913206230"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80910f2fb2_c4ba913206230 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_54a80910f2fb2_c4ba913206230 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_54a80910f2fb2_c4ba913206230-- [ActiveJob] [ActionMailer::DeliveryJob] [2446e0c0-395b-4e97-b501-f6f58eaabf49] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.39ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email28@example.com"], ["created_at", "2015-01-03 15:21:53.001823"], ["updated_at", "2015-01-03 15:21:53.001823"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] 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] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.5ms [ActiveJob] [ActionMailer::DeliveryJob] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] Sent mail to email28@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] Date: Sat, 03 Jan 2015 10:21:53 -0500 From: from@example.com To: email28@example.com Message-ID: <54a809117f88_c4ba9132065b0@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8091176fc_c4ba9132064a3"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8091176fc_c4ba9132064a3 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_54a8091176fc_c4ba9132064a3 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_54a8091176fc_c4ba9132064a3-- [ActiveJob] [ActionMailer::DeliveryJob] [3c82b42f-e2fe-4d0a-90bb-ee49401e6f5b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.16ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 15:21:53.038481"], ["updated_at", "2015-01-03 15:21:53.038481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 15:21:53.042198"], ["updated_at", "2015-01-03 15:21:53.042198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title77"], ["body", "body72"], ["author_id", 2], ["published_at", "2015-01-03 15:21:53.043736"], ["state", "published"], ["created_at", "2015-01-03 15:21:53.045303"], ["updated_at", "2015-01-03 15:21:53.045303"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-03 15:21:53.049877"], ["updated_at", "2015-01-03 15:21:53.049877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title78"], ["body", "body73"], ["author_id", 3], ["created_at", "2015-01-03 15:21:53.052127"], ["updated_at", "2015-01-03 15:21:53.052127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 15:21:53.054916"], ["updated_at", "2015-01-03 15:21:53.054916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 15:21:53.057623"], ["updated_at", "2015-01-03 15:21:53.057623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title79"], ["body", "body74"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.059774"], ["updated_at", "2015-01-03 15:21:53.059774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author29"], ["body", "body28"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.062017"], ["updated_at", "2015-01-03 15:21:53.062017"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 15:21:53.070267"], ["updated_at", "2015-01-03 15:21:53.070267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title80"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-03 15:21:53.072418"], ["updated_at", "2015-01-03 15:21:53.072418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body29"], ["post_id", 2], ["created_at", "2015-01-03 15:21:53.074434"], ["updated_at", "2015-01-03 15:21:53.074434"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-03 15:21:53.081094"], ["updated_at", "2015-01-03 15:21:53.081094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 15:21:53.084324"], ["updated_at", "2015-01-03 15:21:53.084324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title81"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.086636"], ["updated_at", "2015-01-03 15:21:53.086636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author31"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.088838"], ["updated_at", "2015-01-03 15:21:53.088838"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-03 15:21:53.095201"], ["updated_at", "2015-01-03 15:21:53.095201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 15:21:53.098578"], ["updated_at", "2015-01-03 15:21:53.098578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title82"], ["body", "body77"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.101061"], ["updated_at", "2015-01-03 15:21:53.101061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body31"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.103469"], ["updated_at", "2015-01-03 15:21:53.103469"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 15:21:53.111588"], ["updated_at", "2015-01-03 15:21:53.111588"]]  (17.5ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 15:21:53.135953"], ["updated_at", "2015-01-03 15:21:53.135953"]]  (25.2ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title83"], ["body", "body78"], ["author_id", 2], ["published_at", "2015-01-03 15:21:53.165770"], ["state", "published"], ["created_at", "2015-01-03 15:21:53.170000"], ["updated_at", "2015-01-03 15:21:53.170000"]] Proclaim::Subscription Load (0.7ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.218845"], ["updated_at", "2015-01-03 15:21:53.218845"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (33.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:53 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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 (13.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 (21.8ms) Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 10:21:54 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction  (1.0ms) 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  Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.7ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (29.8ms) commit transaction Completed 200 OK in 42ms (Views: 0.4ms | ActiveRecord: 32.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (50.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (32.4ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (44.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.1ms) DELETE FROM sqlite_sequence where name = 'users';  (31.9ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 15:21:55.116866"], ["updated_at", "2015-01-03 15:21:55.116866"]]  (40.5ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 15:21:55.163933"], ["updated_at", "2015-01-03 15:21:55.163933"]]  (46.5ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title84"], ["body", "body79"], ["author_id", 2], ["published_at", "2015-01-03 15:21:55.214294"], ["state", "published"], ["created_at", "2015-01-03 15:21:55.216029"], ["updated_at", "2015-01-03 15:21:55.216029"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.4ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author34"], ["body", "body33"], ["post_id", 1], ["created_at", "2015-01-03 15:21:55.268054"], ["updated_at", "2015-01-03 15:21:55.268054"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (43.0ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author35"], ["body", "body34"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:21:55.324805"], ["updated_at", "2015-01-03 15:21:55.324805"]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.6ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (41.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:55 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.5ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.8ms) Proclaim::Comment Exists (0.1ms) 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.7ms) 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 (5.8ms) 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 (23.8ms) Completed 200 OK in 29ms (Views: 24.2ms | ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 10:21:56 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.9ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.7ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (33.8ms) commit transaction Completed 200 OK in 56ms (Views: 0.2ms | ActiveRecord: 36.5ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (34.9ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (23.4ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (25.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.2ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.6ms) DELETE FROM sqlite_sequence where name = 'users';  (43.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 15:21:57.103412"], ["updated_at", "2015-01-03 15:21:57.103412"]]  (30.7ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title85"], ["body", "body80"], ["author_id", 1], ["published_at", "2015-01-03 15:21:57.136988"], ["state", "published"], ["created_at", "2015-01-03 15:21:57.140897"], ["updated_at", "2015-01-03 15:21:57.140897"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:57 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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 (7.0ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:21:57 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:21:57 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"7"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) 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) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 10:21:57 -0500  (42.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (47.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (46.7ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.7ms) DELETE FROM sqlite_sequence where name = 'users';  (41.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (37.1ms) DELETE FROM "proclaim_images";  (4.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 15:21:58.207449"], ["updated_at", "2015-01-03 15:21:58.207449"]]  (50.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-03 15:21:58.265757"], ["updated_at", "2015-01-03 15:21:58.265757"]]  (41.2ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title86"], ["body", "body81"], ["author_id", 2], ["published_at", "2015-01-03 15:21:58.312122"], ["state", "published"], ["created_at", "2015-01-03 15:21:58.316733"], ["updated_at", "2015-01-03 15:21:58.316733"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (41.0ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 15:21:58.368716"], ["updated_at", "2015-01-03 15:21:58.368716"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:58 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.1ms) 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 (6.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 (12.0ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:21:58 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:21:58 -0500 Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 10:21:59 -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"} Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 15:21:59.145482"], ["id", 1]]  (57.7ms) commit transaction Proclaim::Comment Load (0.5ms) 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]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.2ms) 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 (3.9ms) 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/_comment.html.erb (16.4ms) Completed 200 OK in 102ms (Views: 1.4ms | ActiveRecord: 60.4ms)  (44.1ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (32.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.9ms) DELETE FROM sqlite_sequence where name = 'users';  (34.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.6ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-03 15:21:59.721456"], ["updated_at", "2015-01-03 15:21:59.721456"]]  (45.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title87"], ["body", "body82"], ["author_id", 1], ["published_at", "2015-01-03 15:21:59.768937"], ["state", "published"], ["created_at", "2015-01-03 15:21:59.770712"], ["updated_at", "2015-01-03 15:21:59.770712"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:59 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.4ms) Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:21:59 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:21:59 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:00 -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"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.8ms) 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-03 15:22:00.485346"], ["updated_at", "2015-01-03 15:22:00.485346"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (59.8ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.2ms) Completed 200 OK in 86ms (Views: 0.5ms | ActiveRecord: 61.9ms)  (45.1ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (47.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (42.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.9ms) DELETE FROM sqlite_sequence where name = 'users';  (33.4ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 15:22:01.091624"], ["updated_at", "2015-01-03 15:22:01.091624"]]  (35.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title88"], ["body", "body83"], ["author_id", 1], ["published_at", "2015-01-03 15:22:01.128818"], ["state", "published"], ["created_at", "2015-01-03 15:22:01.133310"], ["updated_at", "2015-01-03 15:22:01.133310"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:01 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.8ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:01 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:01 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:01 -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"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (28.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (25.9ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.6ms) DELETE FROM sqlite_sequence where name = 'users';  (36.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.2ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 15:22:02.232298"], ["updated_at", "2015-01-03 15:22:02.232298"]]  (41.1ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 15:22:02.283694"], ["updated_at", "2015-01-03 15:22:02.283694"]]  (37.8ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title89"], ["body", "body84"], ["author_id", 2], ["published_at", "2015-01-03 15:22:02.324297"], ["state", "published"], ["created_at", "2015-01-03 15:22:02.327693"], ["updated_at", "2015-01-03 15:22:02.327693"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.1ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-03 15:22:02.381662"], ["updated_at", "2015-01-03 15:22:02.381662"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.0ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (32.7ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author38"], ["body", "body37"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:02.431902"], ["updated_at", "2015-01-03 15:22:02.431902"]] SQL (1.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (48.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:02 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.0ms) 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 (9.1ms) Proclaim::Comment Exists (0.1ms) 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.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 (7.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (24.9ms) Completed 200 OK in 29ms (Views: 25.4ms | ActiveRecord: 1.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:02 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:02 -0500 Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 10:22:03 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 15:22:03.188097"], ["id", 1]]  (51.5ms) commit transaction Proclaim::Comment Load (0.3ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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.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/comments/_comment.html.erb (9.3ms) Proclaim::Comment Exists (0.1ms) 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/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.3ms) Completed 200 OK in 92ms (Views: 2.1ms | ActiveRecord: 53.8ms)  (27.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (17.6ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.6ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.3ms) DELETE FROM sqlite_sequence where name = 'users';  (46.0ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (28.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 15:22:03.782990"], ["updated_at", "2015-01-03 15:22:03.782990"]]  (36.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 15:22:03.823914"], ["updated_at", "2015-01-03 15:22:03.823914"]]  (34.2ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title90"], ["body", "body85"], ["author_id", 2], ["published_at", "2015-01-03 15:22:03.861405"], ["state", "published"], ["created_at", "2015-01-03 15:22:03.866062"], ["updated_at", "2015-01-03 15:22:03.866062"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.1ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author39"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-03 15:22:03.909599"], ["updated_at", "2015-01-03 15:22:03.909599"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (52.0ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author40"], ["body", "body39"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:03.977587"], ["updated_at", "2015-01-03 15:22:03.977587"]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.6ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (49.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:04 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.0ms) Proclaim::Comment Exists (0.1ms) 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.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/comments/_comment.html.erb (7.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/posts/show.html.erb within layouts/application (25.0ms) Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.9ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:04 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:04 -0500  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-03 10:22:04 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (1.3ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.3ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (44.1ms) commit transaction Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 46.4ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (26.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (16.8ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (16.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (14.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.0ms) DELETE FROM sqlite_sequence where name = 'users';  (34.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.1ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 15:22:05.725843"], ["updated_at", "2015-01-03 15:22:05.725843"]]  (33.4ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title91"], ["body", "body86"], ["author_id", 1], ["published_at", "2015-01-03 15:22:05.761290"], ["state", "published"], ["created_at", "2015-01-03 15:22:05.763188"], ["updated_at", "2015-01-03 15:22:05.763188"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author41"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-03 15:22:05.796994"], ["updated_at", "2015-01-03 15:22:05.796994"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (32.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:05 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (4.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (14.0ms) Completed 200 OK in 19ms (Views: 15.7ms | ActiveRecord: 0.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:05 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:05 -0500  (49.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.3ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (37.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.3ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.0ms) DELETE FROM sqlite_sequence where name = 'users';  (47.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (124.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 15:22:06.515967"], ["updated_at", "2015-01-03 15:22:06.515967"]]  (40.1ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 15:22:06.567136"], ["updated_at", "2015-01-03 15:22:06.567136"]]  (41.0ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title92"], ["body", "body87"], ["author_id", 2], ["published_at", "2015-01-03 15:22:06.613384"], ["state", "published"], ["created_at", "2015-01-03 15:22:06.618055"], ["updated_at", "2015-01-03 15:22:06.618055"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.1ms) commit transaction  (0.4ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author42"], ["body", "body41"], ["post_id", 1], ["created_at", "2015-01-03 15:22:06.666548"], ["updated_at", "2015-01-03 15:22:06.666548"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.3ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author43"], ["body", "body42"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:06.721359"], ["updated_at", "2015-01-03 15:22:06.721359"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (43.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:06 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.7ms) 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 (8.9ms) Proclaim::Comment Exists (0.1ms) 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.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/comments/_comment.html.erb (7.3ms) 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 (24.5ms) Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:06 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:06 -0500 Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-03 10:22:07 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 15:22:07.514366"], ["id", 2]]  (32.4ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.0ms) 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 (13.7ms) Completed 200 OK in 82ms (Views: 0.8ms | ActiveRecord: 34.5ms)  (51.9ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.1ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (34.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.8ms) DELETE FROM sqlite_sequence where name = 'users';  (42.3ms) DELETE FROM "proclaim_subscriptions";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (29.6ms) DELETE FROM "proclaim_images";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 15:22:08.177066"], ["updated_at", "2015-01-03 15:22:08.177066"]]  (28.9ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title93"], ["body", "body88"], ["author_id", 1], ["published_at", "2015-01-03 15:22:08.208717"], ["state", "published"], ["created_at", "2015-01-03 15:22:08.213941"], ["updated_at", "2015-01-03 15:22:08.213941"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (33.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author44"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-03 15:22:08.251210"], ["updated_at", "2015-01-03 15:22:08.251210"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.0ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (29.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:08 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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 (4.9ms) 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 (12.1ms) Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:08 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:08 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:08 -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"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (63.8ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (28.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.5ms) DELETE FROM sqlite_sequence where name = 'users';  (35.9ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 15:22:09.294064"], ["updated_at", "2015-01-03 15:22:09.294064"]]  (31.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title94"], ["body", "body89"], ["author_id", 1], ["published_at", "2015-01-03 15:22:09.327652"], ["state", "published"], ["created_at", "2015-01-03 15:22:09.330976"], ["updated_at", "2015-01-03 15:22:09.330976"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author45"], ["body", "body44"], ["post_id", 1], ["created_at", "2015-01-03 15:22:09.375062"], ["updated_at", "2015-01-03 15:22:09.375062"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.4ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body45"], ["post_id", 1], ["created_at", "2015-01-03 15:22:09.426686"], ["updated_at", "2015-01-03 15:22:09.426686"]] SQL (0.8ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (38.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:09 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.3ms) Proclaim::Comment Exists (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.0ms) 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 (14.4ms) Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:09 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:09 -0500  (28.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (29.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (55.7ms) DELETE FROM sqlite_sequence where name = 'users';  (43.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.1ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-03 15:22:10.176064"], ["updated_at", "2015-01-03 15:22:10.176064"]]  (37.1ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title95"], ["body", "body90"], ["author_id", 1], ["published_at", "2015-01-03 15:22:10.218716"], ["state", "published"], ["created_at", "2015-01-03 15:22:10.223336"], ["updated_at", "2015-01-03 15:22:10.223336"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-03 15:22:10.264151"], ["updated_at", "2015-01-03 15:22:10.264151"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (37.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:10 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.6ms) 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 (12.7ms) Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 0.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:10 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:10 -0500  (44.7ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (44.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.0ms) DELETE FROM sqlite_sequence where name = 'users';  (34.4ms) DELETE FROM "proclaim_subscriptions";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.2ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 15:22:10.827773"], ["updated_at", "2015-01-03 15:22:10.827773"]]  (71.8ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title96"], ["body", "body91"], ["author_id", 1], ["published_at", "2015-01-03 15:22:10.903242"], ["state", "published"], ["created_at", "2015-01-03 15:22:10.907735"], ["updated_at", "2015-01-03 15:22:10.907735"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.8ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author48"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-03 15:22:10.963799"], ["updated_at", "2015-01-03 15:22:10.963799"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (44.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:11 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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/posts/show.html.erb within layouts/application (12.5ms) Completed 200 OK in 18ms (Views: 14.1ms | ActiveRecord: 0.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:11 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:11 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:11 -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"=>"5", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:11.804976"], ["updated_at", "2015-01-03 15:22:11.804976"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.4ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (42.8ms) commit transaction Proclaim::Comment Load (0.4ms) 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", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.3ms) 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/_comment.html.erb (12.2ms) Completed 200 OK in 91ms (Views: 0.6ms | ActiveRecord: 46.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:12 -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"=>"5", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.5ms) 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-03 15:22:12.592822"], ["updated_at", "2015-01-03 15:22:12.592822"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (62.3ms) commit transaction Proclaim::Comment Load (0.4ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["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 (5.0ms) Completed 200 OK in 99ms (Views: 0.5ms | ActiveRecord: 65.2ms)  (38.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (44.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.8ms) DELETE FROM sqlite_sequence where name = 'users';  (40.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-03 15:22:13.246886"], ["updated_at", "2015-01-03 15:22:13.246886"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 29207d06-0369-4837-870e-c4cddb14e9ff) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [29207d06-0369-4837-870e-c4cddb14e9ff] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [29207d06-0369-4837-870e-c4cddb14e9ff] 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] [29207d06-0369-4837-870e-c4cddb14e9ff] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.0ms [ActiveJob] [ActionMailer::DeliveryJob] [29207d06-0369-4837-870e-c4cddb14e9ff] Sent mail to foo@bar.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [29207d06-0369-4837-870e-c4cddb14e9ff] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8092544216_c4ba913206720@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809254390c_c4ba91320669c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809254390c_c4ba91320669c 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_54a809254390c_c4ba91320669c 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_54a809254390c_c4ba91320669c-- [ActiveJob] [ActionMailer::DeliveryJob] [29207d06-0369-4837-870e-c4cddb14e9ff] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.88ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-03 15:22:13.285613"], ["updated_at", "2015-01-03 15:22:13.285613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body92"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.288043"], ["updated_at", "2015-01-03 15:22:13.288043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:13.290783"], ["updated_at", "2015-01-03 15:22:13.290783"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 64561e7d-54ad-4d03-9f31-a3d5d14de6ac) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.4ms [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Sent mail to foo@bar.com (4.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8092550ade_c4ba91320699d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092550257_c4ba913206891"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092550257_c4ba913206891 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_54a8092550257_c4ba913206891 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_54a8092550257_c4ba913206891-- [ActiveJob] [ActionMailer::DeliveryJob] [64561e7d-54ad-4d03-9f31-a3d5d14de6ac] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.83ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-03 15:22:13.342127"], ["updated_at", "2015-01-03 15:22:13.342127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title98"], ["body", "body93"], ["author_id", 1], ["published_at", "2015-01-03 15:22:13.343742"], ["state", "published"], ["created_at", "2015-01-03 15:22:13.345124"], ["updated_at", "2015-01-03 15:22:13.345124"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email30@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:13.349086"], ["updated_at", "2015-01-03 15:22:13.349086"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4c4a0eef-40b9-4a01-87f2-1755903f5dc5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] 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] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.6ms [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Sent mail to email30@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: email30@example.com Message-ID: <54a809255eb39_c4ba9132071f5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809255e19b_c4ba913207046"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809255e19b_c4ba913207046 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_54a809255e19b_c4ba913207046 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_54a809255e19b_c4ba913207046-- [ActiveJob] [ActionMailer::DeliveryJob] [4c4a0eef-40b9-4a01-87f2-1755903f5dc5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.8ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email31@example.com"], ["created_at", "2015-01-03 15:22:13.392730"], ["updated_at", "2015-01-03 15:22:13.392730"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 12b6eee5-c239-4e65-80ad-b8c85bb46f28) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] 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] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms [ActiveJob] [ActionMailer::DeliveryJob] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] Sent mail to email31@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: email31@example.com Message-ID: <54a80925676d7_c4ba913207364@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092566e3c_c4ba913207265"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092566e3c_c4ba913207265 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_54a8092566e3c_c4ba913207265 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_54a8092566e3c_c4ba913207265-- [ActiveJob] [ActionMailer::DeliveryJob] [12b6eee5-c239-4e65-80ad-b8c85bb46f28] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.02ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email32@example.com"], ["created_at", "2015-01-03 15:22:13.428715"], ["updated_at", "2015-01-03 15:22:13.428715"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 18acff5a-d476-44c2-8cf5-91dcea2c7942) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [18acff5a-d476-44c2-8cf5-91dcea2c7942] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [18acff5a-d476-44c2-8cf5-91dcea2c7942] 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] [18acff5a-d476-44c2-8cf5-91dcea2c7942] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.1ms [ActiveJob] [ActionMailer::DeliveryJob] [18acff5a-d476-44c2-8cf5-91dcea2c7942] Sent mail to email32@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [18acff5a-d476-44c2-8cf5-91dcea2c7942] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: email32@example.com Message-ID: <54a809257117a_c4ba9132075b5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80925706ba_c4ba913207461"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80925706ba_c4ba913207461 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_54a80925706ba_c4ba913207461 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_54a80925706ba_c4ba913207461-- [ActiveJob] [ActionMailer::DeliveryJob] [18acff5a-d476-44c2-8cf5-91dcea2c7942] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.41ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-03 15:22:13.467669"], ["updated_at", "2015-01-03 15:22:13.467669"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 884e09ac-6932-48e0-b3c2-d574cb0906c1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [884e09ac-6932-48e0-b3c2-d574cb0906c1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [884e09ac-6932-48e0-b3c2-d574cb0906c1] 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] [884e09ac-6932-48e0-b3c2-d574cb0906c1] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.2ms [ActiveJob] [ActionMailer::DeliveryJob] [884e09ac-6932-48e0-b3c2-d574cb0906c1] Sent mail to email33@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [884e09ac-6932-48e0-b3c2-d574cb0906c1] Date: Sat, 03 Jan 2015 10:22:13 -0500 From: from@example.com To: email33@example.com Message-ID: <54a809257a25d_c4ba9132077f8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092579959_c4ba91320765b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092579959_c4ba91320765b 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_54a8092579959_c4ba91320765b 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_54a8092579959_c4ba91320765b-- [ActiveJob] [ActionMailer::DeliveryJob] [884e09ac-6932-48e0-b3c2-d574cb0906c1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 15:22:13.517021"], ["updated_at", "2015-01-03 15:22:13.517021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body94"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.519680"], ["updated_at", "2015-01-03 15:22:13.519680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-03 15:22:13.524953"], ["updated_at", "2015-01-03 15:22:13.524953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", "body95"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.527705"], ["updated_at", "2015-01-03 15:22:13.527705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:13.533258"], ["updated_at", "2015-01-03 15:22:13.533258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-03 15:22:13.539128"], ["updated_at", "2015-01-03 15:22:13.539128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body96"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.541701"], ["updated_at", "2015-01-03 15:22:13.541701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:13.545645"], ["updated_at", "2015-01-03 15:22:13.545645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Proclaim::InstallGeneratorTest: test_generator_runs_without_errors ------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-03 15:22:13.555584"], ["updated_at", "2015-01-03 15:22:13.555584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title102"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.558255"], ["updated_at", "2015-01-03 15:22:13.558255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 15:22:13.560967"], ["updated_at", "2015-01-03 15:22:13.560967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-03 15:22:13.565564"], ["updated_at", "2015-01-03 15:22:13.565564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 15:22:13.570419"], ["updated_at", "2015-01-03 15:22:13.570419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title105"], ["body", "body100"], ["author_id", 4], ["published_at", "2015-01-03 15:22:13.571823"], ["state", "published"], ["created_at", "2015-01-03 15:22:13.573222"], ["updated_at", "2015-01-03 15:22:13.573222"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 15:22:13.577206"], ["updated_at", "2015-01-03 15:22:13.577206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 15:22:13.582271"], ["updated_at", "2015-01-03 15:22:13.582271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 15:22:13.585506"], ["updated_at", "2015-01-03 15:22:13.585506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 15:22:13.588377"], ["updated_at", "2015-01-03 15:22:13.588377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 15:22:13.590766"], ["updated_at", "2015-01-03 15:22:13.590766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 15:22:13.593104"], ["updated_at", "2015-01-03 15:22:13.593104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 15:22:13.602783"], ["updated_at", "2015-01-03 15:22:13.602783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body104"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.605317"], ["updated_at", "2015-01-03 15:22:13.605317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-03 15:22:13.611131"], ["updated_at", "2015-01-03 15:22:13.611131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title114"], ["body", "body105"], ["author_id", 1], ["published_at", "2015-01-03 15:22:13.614498"], ["state", "published"], ["created_at", "2015-01-03 15:22:13.617145"], ["updated_at", "2015-01-03 15:22:13.617145"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-03 15:22:13.624616"], ["updated_at", "2015-01-03 15:22:13.624616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 15:22:13.631762"], ["updated_at", "2015-01-03 15:22:13.631762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 15:22:13.637608"], ["updated_at", "2015-01-03 15:22:13.637608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-03 15:22:13.644112"], ["updated_at", "2015-01-03 15:22:13.644112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 15:22:13.649536"], ["updated_at", "2015-01-03 15:22:13.649536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 15:22:13.657619"], ["updated_at", "2015-01-03 15:22:13.657619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 1], ["published_at", "2015-01-03 15:22:13.660184"], ["state", "published"], ["created_at", "2015-01-03 15:22:13.662219"], ["updated_at", "2015-01-03 15:22:13.662219"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 15:22:13.672419"], ["updated_at", "2015-01-03 15:22:13.672419"]]  (21.5ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 1], ["published_at", "2015-01-03 15:22:13.696670"], ["state", "published"], ["created_at", "2015-01-03 15:22:13.698421"], ["updated_at", "2015-01-03 15:22:13.698421"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (14.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-03 15:22:13.717443"], ["updated_at", "2015-01-03 15:22:13.717443"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (38.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:13 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (5.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (14.9ms) Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:13 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:13 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:14 -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"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (22.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (16.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (21.4ms) DELETE FROM sqlite_sequence where name = 'users';  (35.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (30.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 15:22:14.862437"], ["updated_at", "2015-01-03 15:22:14.862437"]]  (31.2ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 1], ["published_at", "2015-01-03 15:22:14.896620"], ["state", "published"], ["created_at", "2015-01-03 15:22:14.901644"], ["updated_at", "2015-01-03 15:22:14.901644"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (29.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author50"], ["body", "body49"], ["post_id", 1], ["created_at", "2015-01-03 15:22:14.942689"], ["updated_at", "2015-01-03 15:22:14.942689"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (38.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:15 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.6ms) 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 (10.9ms) Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 0.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:15 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:15 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:15 -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"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) 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)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (66.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (43.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (49.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (42.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (45.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.9ms) DELETE FROM sqlite_sequence where name = 'users';  (53.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 15:22:16.372979"], ["updated_at", "2015-01-03 15:22:16.372979"]]  (38.1ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 1], ["published_at", "2015-01-03 15:22:16.413786"], ["state", "published"], ["created_at", "2015-01-03 15:22:16.418099"], ["updated_at", "2015-01-03 15:22:16.418099"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.2ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author51"], ["body", "body50"], ["post_id", 1], ["created_at", "2015-01-03 15:22:16.471313"], ["updated_at", "2015-01-03 15:22:16.471313"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (51.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:16 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.4ms) 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]] Proclaim::Comment Exists (0.2ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.8ms) 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 (22.3ms) Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 1.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:16 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:16 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:17 -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"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:17.418459"], ["updated_at", "2015-01-03 15:22:17.418459"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.7ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:17.432233"], ["updated_at", "2015-01-03 15:22:17.432233"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4785e0d7-28dc-463d-8c40-1a54a2b18efc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 37.9ms [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Date: Sat, 03 Jan 2015 10:22:17 -0500 From: from@example.com To: example@example.com Message-ID: <54a80929755f7_c4b1c3068079e6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092974c12_c4b1c306807812"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092974c12_c4b1c306807812 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_54a8092974c12_c4b1c306807812 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_54a8092974c12_c4b1c306807812-- [ActiveJob] [ActionMailer::DeliveryJob] [4785e0d7-28dc-463d-8c40-1a54a2b18efc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 45.37ms  (26.1ms) commit transaction Proclaim::Comment Load (0.4ms) 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", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.3ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.2ms) Completed 200 OK in 129ms (Views: 0.5ms | ActiveRecord: 31.3ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (42.0ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (27.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (27.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (27.4ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (50.7ms) DELETE FROM sqlite_sequence where name = 'users';  (38.4ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.6ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 15:22:17.979265"], ["updated_at", "2015-01-03 15:22:17.979265"]]  (41.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 1], ["published_at", "2015-01-03 15:22:18.024040"], ["state", "published"], ["created_at", "2015-01-03 15:22:18.027410"], ["updated_at", "2015-01-03 15:22:18.027410"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:18 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.6ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:18 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:18 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:18 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (1.3ms) 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-03 15:22:18.940046"], ["updated_at", "2015-01-03 15:22:18.940046"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:18.950332"], ["updated_at", "2015-01-03 15:22:18.950332"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 00313389-697e-4ce0-9b90-b4006b8e610a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] 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] [00313389-697e-4ce0-9b90-b4006b8e610a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 37.6ms [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] Sent mail to example@example.com (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] Date: Sat, 03 Jan 2015 10:22:18 -0500 From: from@example.com To: example@example.com Message-ID: <54a8092af38bb_c4b1c3068081e1@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092af2a55_c4b1c30680805e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092af2a55_c4b1c30680805e 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_54a8092af2a55_c4b1c30680805e 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_54a8092af2a55_c4b1c30680805e-- [ActiveJob] [ActionMailer::DeliveryJob] [00313389-697e-4ce0-9b90-b4006b8e610a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 44.18ms  (43.7ms) commit transaction Proclaim::Comment Load (0.3ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.6ms) Completed 200 OK in 127ms (Views: 0.5ms | ActiveRecord: 47.3ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (27.0ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (43.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.6ms) DELETE FROM "users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.6ms) DELETE FROM sqlite_sequence where name = 'users';  (29.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.0ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 15:22:19.442336"], ["updated_at", "2015-01-03 15:22:19.442336"]]  (36.0ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 1], ["published_at", "2015-01-03 15:22:19.481070"], ["state", "published"], ["created_at", "2015-01-03 15:22:19.485929"], ["updated_at", "2015-01-03 15:22:19.485929"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:19 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (9.9ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:19 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:19 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:20 -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"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.3ms) 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-03 15:22:20.389613"], ["updated_at", "2015-01-03 15:22:20.389613"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:20.399454"], ["updated_at", "2015-01-03 15:22:20.399454"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eebd9b0a-62a5-423a-8d88-94d428826f80) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 37.1ms [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Sent mail to example@example.com (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Date: Sat, 03 Jan 2015 10:22:20 -0500 From: from@example.com To: example@example.com Message-ID: <54a8092c6d008_c4b1c306808348@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092c6c495_c4b1c306808211"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092c6c495_c4b1c306808211 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_54a8092c6c495_c4b1c306808211 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_54a8092c6c495_c4b1c306808211-- [ActiveJob] [ActionMailer::DeliveryJob] [eebd9b0a-62a5-423a-8d88-94d428826f80] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.91ms  (39.0ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.3ms) Completed 200 OK in 120ms (Views: 0.5ms | ActiveRecord: 42.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (49.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (44.3ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.5ms) DELETE FROM sqlite_sequence where name = 'users';  (40.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (60.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (44.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 15:22:20.985856"], ["updated_at", "2015-01-03 15:22:20.985856"]]  (43.2ms) commit transaction  (0.3ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-03 15:22:21.037450"], ["updated_at", "2015-01-03 15:22:21.037450"]]  (46.7ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["published_at", "2015-01-03 15:22:21.089267"], ["state", "published"], ["created_at", "2015-01-03 15:22:21.093603"], ["updated_at", "2015-01-03 15:22:21.093603"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:21 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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 (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.0ms) Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.6ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:21 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:21 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:21 -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"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.4ms) 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-03 15:22:21.846113"], ["updated_at", "2015-01-03 15:22:21.846113"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:21.856548"], ["updated_at", "2015-01-03 15:22:21.856548"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6203375c-7489-4592-bd58-38a76c0015dc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.0ms [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Sent mail to example@example.com (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Date: Sat, 03 Jan 2015 10:22:21 -0500 From: from@example.com To: example@example.com Message-ID: <54a8092ddc256_c4b1c3068085a5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8092ddb616_c4b1c3068084e4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8092ddb616_c4b1c3068084e4 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_54a8092ddb616_c4b1c3068084e4 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_54a8092ddb616_c4b1c3068084e4-- [ActiveJob] [ActionMailer::DeliveryJob] [6203375c-7489-4592-bd58-38a76c0015dc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.99ms  (38.9ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.1ms) Completed 200 OK in 120ms (Views: 0.8ms | ActiveRecord: 42.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (30.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (30.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.5ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.2ms) DELETE FROM sqlite_sequence where name = 'users';  (31.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 15:22:22.356689"], ["updated_at", "2015-01-03 15:22:22.356689"]]  (29.4ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 1], ["published_at", "2015-01-03 15:22:22.391211"], ["state", "published"], ["created_at", "2015-01-03 15:22:22.395660"], ["updated_at", "2015-01-03 15:22:22.395660"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:22 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (9.4ms) Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:22 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:22 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:23 -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"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) 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-03 15:22:23.290066"], ["updated_at", "2015-01-03 15:22:23.290066"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 2.5ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (40.7ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.4ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.0ms) DELETE FROM sqlite_sequence where name = 'users';  (35.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (24.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-03 15:22:23.605602"], ["updated_at", "2015-01-03 15:22:23.605602"]]  (32.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 1], ["published_at", "2015-01-03 15:22:23.642613"], ["state", "published"], ["created_at", "2015-01-03 15:22:23.644583"], ["updated_at", "2015-01-03 15:22:23.644583"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (25.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:23 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (5.9ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:23 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:23 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:24 -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"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) 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-03 15:22:24.576829"], ["updated_at", "2015-01-03 15:22:24.576829"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 18ms (Views: 0.3ms | ActiveRecord: 3.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (54.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.4ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.7ms) DELETE FROM sqlite_sequence where name = 'users';  (38.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.9ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-03 15:22:24.977843"], ["updated_at", "2015-01-03 15:22:24.977843"]]  (39.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 15:22:25.024069"], ["updated_at", "2015-01-03 15:22:25.024069"]]  (47.5ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 2], ["published_at", "2015-01-03 15:22:25.075066"], ["state", "published"], ["created_at", "2015-01-03 15:22:25.079663"], ["updated_at", "2015-01-03 15:22:25.079663"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.0ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author52"], ["body", "body51"], ["post_id", 1], ["created_at", "2015-01-03 15:22:25.128810"], ["updated_at", "2015-01-03 15:22:25.128810"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (44.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:22:25 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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 (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.3ms) 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.4ms) Completed 200 OK in 21ms (Views: 16.9ms | ActiveRecord: 0.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 10:22:25 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 10:22:25 -0500  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 10:22:26 -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"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:26.061926"], ["updated_at", "2015-01-03 15:22:26.061926"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:26.074334"], ["updated_at", "2015-01-03 15:22:26.074334"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e57ecdde-62f5-40fd-8a36-42d7078db625) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (6.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.7ms [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Date: Sat, 03 Jan 2015 10:22:26 -0500 From: from@example.com To: example@example.com Message-ID: <54a809321d1ce_c4b1c3068087dc@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a809321c740_c4b1c30680868f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a809321c740_c4b1c30680868f 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_54a809321c740_c4b1c30680868f 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_54a809321c740_c4b1c30680868f-- [ActiveJob] [ActionMailer::DeliveryJob] [e57ecdde-62f5-40fd-8a36-42d7078db625] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.29ms  (26.5ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (3.6ms) 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 (11.0ms) Completed 200 OK in 116ms (Views: 0.8ms | ActiveRecord: 30.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (22.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (23.0ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (32.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'users';  (37.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 15:22:26.538151"], ["updated_at", "2015-01-03 15:22:26.538151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 15:22:26.542240"], ["updated_at", "2015-01-03 15:22:26.542240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.544670"], ["updated_at", "2015-01-03 15:22:26.544670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.548826"], ["updated_at", "2015-01-03 15:22:26.548826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 15:22:26.558877"], ["updated_at", "2015-01-03 15:22:26.558877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.562263"], ["updated_at", "2015-01-03 15:22:26.562263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-03 15:22:26.568168"], ["updated_at", "2015-01-03 15:22:26.568168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.570745"], ["updated_at", "2015-01-03 15:22:26.570745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420298546-3147-1149/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 15:22:26.580499"], ["updated_at", "2015-01-03 15:22:26.580499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.582901"], ["updated_at", "2015-01-03 15:22:26.582901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 15:22:26.594205"], ["updated_at", "2015-01-03 15:22:26.594205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.597093"], ["updated_at", "2015-01-03 15:22:26.597093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 15:22:26.602023"], ["updated_at", "2015-01-03 15:22:26.602023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-03 15:22:26.605931"], ["updated_at", "2015-01-03 15:22:26.605931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.608178"], ["updated_at", "2015-01-03 15:22:26.608178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420298546-3147-6760/test.jpg"} Unpermitted parameter: format Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-03 15:22:26.618583"], ["updated_at", "2015-01-03 15:22:26.618583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.621252"], ["updated_at", "2015-01-03 15:22:26.621252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 15:22:26.625966"], ["updated_at", "2015-01-03 15:22:26.625966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-03 15:22:26.629698"], ["updated_at", "2015-01-03 15:22:26.629698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.632229"], ["updated_at", "2015-01-03 15:22:26.632229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 15:22:26.642716"], ["updated_at", "2015-01-03 15:22:26.642716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.645075"], ["updated_at", "2015-01-03 15:22:26.645075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 15:22:26.649357"], ["updated_at", "2015-01-03 15:22:26.649357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 15:22:26.653624"], ["updated_at", "2015-01-03 15:22:26.653624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.655944"], ["updated_at", "2015-01-03 15:22:26.655944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.666253"], ["updated_at", "2015-01-03 15:22:26.666253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 15:22:26.671659"], ["updated_at", "2015-01-03 15:22:26.671659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.674123"], ["updated_at", "2015-01-03 15:22:26.674123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 15:22:26.678993"], ["updated_at", "2015-01-03 15:22:26.678993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.681685"], ["updated_at", "2015-01-03 15:22:26.681685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.686302"], ["updated_at", "2015-01-03 15:22:26.686302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 15:22:26.696085"], ["updated_at", "2015-01-03 15:22:26.696085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.698620"], ["updated_at", "2015-01-03 15:22:26.698620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 15:22:26.703868"], ["updated_at", "2015-01-03 15:22:26.703868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.706359"], ["updated_at", "2015-01-03 15:22:26.706359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 15:22:26.715938"], ["updated_at", "2015-01-03 15:22:26.715938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.718491"], ["updated_at", "2015-01-03 15:22:26.718491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-03 15:22:26.724626"], ["updated_at", "2015-01-03 15:22:26.724626"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 279a405d-38e7-424d-9119-a03f3a99cd95) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [279a405d-38e7-424d-9119-a03f3a99cd95] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [279a405d-38e7-424d-9119-a03f3a99cd95] 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] [279a405d-38e7-424d-9119-a03f3a99cd95] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.5ms [ActiveJob] [ActionMailer::DeliveryJob] [279a405d-38e7-424d-9119-a03f3a99cd95] Sent mail to email34@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [279a405d-38e7-424d-9119-a03f3a99cd95] Date: Sat, 03 Jan 2015 10:22:26 -0500 From: from@example.com To: email34@example.com Message-ID: <54a80932b95aa_c4ba91320897e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80932b8beb_c4ba9132088ef"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80932b8beb_c4ba9132088ef 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_54a80932b8beb_c4ba9132088ef 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_54a80932b8beb_c4ba9132088ef-- [ActiveJob] [ActionMailer::DeliveryJob] [279a405d-38e7-424d-9119-a03f3a99cd95] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.29ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.3ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) 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 10:22:26 -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: 5.4ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 15:22:26.797327"], ["updated_at", "2015-01-03 15:22:26.797327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["published_at", "2015-01-03 15:22:26.799106"], ["state", "published"], ["created_at", "2015-01-03 15:22:26.800618"], ["updated_at", "2015-01-03 15:22:26.800618"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email35@example.com"], ["post_id", 1], ["created_at", "2015-01-03 15:22:26.804369"], ["updated_at", "2015-01-03 15:22:26.804369"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 81fde660-4a0f-48a8-a32a-20dc09c29b7c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] 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] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.9ms [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Sent mail to email35@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Date: Sat, 03 Jan 2015 10:22:26 -0500 From: from@example.com To: email35@example.com Message-ID: <54a80932ce9f0_c4ba9132091bd@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80932ce102_c4ba913209059"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80932ce102_c4ba913209059 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_54a80932ce102_c4ba913209059 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_54a80932ce102_c4ba913209059-- [ActiveJob] [ActionMailer::DeliveryJob] [81fde660-4a0f-48a8-a32a-20dc09c29b7c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.3ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) 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 10:22:26 -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.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 10:22:26 -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.7ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) 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.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) 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 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#new as HTML 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 15:22:26.916796"], ["updated_at", "2015-01-03 15:22:26.916796"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 55237775-8d3d-4b0e-8cef-3dc8e9b89448) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] 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] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.3ms [ActiveJob] [ActionMailer::DeliveryJob] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] Sent mail to example@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] Date: Sat, 03 Jan 2015 10:22:26 -0500 From: from@example.com To: example@example.com Message-ID: <54a80932e845f_c4ba91320931d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a80932e7ac5_c4ba913209238"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a80932e7ac5_c4ba913209238 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_54a80932e7ac5_c4ba913209238 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_54a80932e7ac5_c4ba913209238-- [ActiveJob] [ActionMailer::DeliveryJob] [55237775-8d3d-4b0e-8cef-3dc8e9b89448] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.4ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 40ms (ActiveRecord: 0.8ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 10:22:26 -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.4ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 15:22:26.964275"], ["updated_at", "2015-01-03 15:22:26.964275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 10:22:26 -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 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 10:22:26 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"6"}, "commit"=>"Subscribe"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 15:22:26.994126"], ["updated_at", "2015-01-03 15:22:26.994126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 10:22:27 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 10:22:27 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 15:22:27.018352"], ["updated_at", "2015-01-03 15:22:27.018352"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 48.9ms [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Sent mail to example@example.com (5.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Date: Sat, 03 Jan 2015 10:22:27 -0500 From: from@example.com To: example@example.com Message-ID: <54a8093311e8f_c4ba913209598@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8093311063_c4ba91320944c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8093311063_c4ba91320944c 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_54a8093311063_c4ba91320944c 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_54a8093311063_c4ba91320944c-- [ActiveJob] [ActionMailer::DeliveryJob] [3cee43ce-c3ff-44c6-8a1a-1bb2aea634f7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 55.17ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 63ms (ActiveRecord: 0.8ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 10:22:27 -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 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.1ms) rollback transaction  (37.0ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)   (0.1ms) select sqlite_version(*)  (26.8ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.3ms) 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'  (16.5ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")  (21.8ms) 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)  (25.1ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")  (29.1ms) 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)  (28.5ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")  (19.5ms) 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)  (29.1ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) 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'  (23.6ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")  (21.9ms) 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)  (28.3ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")  (0.1ms) 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'  (36.0ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (42.3ms) 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)  (40.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (45.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (43.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')  (36.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117214323') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.2ms) begin transaction  (0.5ms) 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)  SQLite3::SQLException: table "proclaim_posts" already exists: 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)  (0.2ms) rollback transaction  (29.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (43.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.2ms) begin transaction  (0.5ms) 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)  (0.1ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) 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'  (0.1ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state") SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]  (45.8ms) commit transaction Migrating to CreateProclaimComments (20141114235359)  (0.1ms) begin transaction  (0.8ms) 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)   (0.2ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id") SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114235359"]]  (42.7ms) commit transaction Migrating to CreateProclaimCommentHierarchies (20141115022230)  (0.2ms) begin transaction  (1.5ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.3ms) 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'  (0.4ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id") SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]  (44.2ms) commit transaction Migrating to CreateUsers (20141117214323)  (0.2ms) begin transaction  (1.9ms) 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)  SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]  (48.8ms) commit transaction Migrating to CreateProclaimSubscriptions (20141210234057)  (0.1ms) begin transaction  (0.5ms) 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)   (0.1ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (0.1ms)  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'   (0.4ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141210234057"]]  (47.7ms) commit transaction Migrating to CreateProclaimImages (20141222224905)  (0.1ms) begin transaction  (0.7ms) 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)  (0.1ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]  (44.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (58.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (33.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.1ms) begin transaction  (0.4ms) 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)  (0.1ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) 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'  (0.1ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]  (35.8ms) commit transaction Migrating to CreateProclaimComments (20141114235359)  (0.1ms) begin transaction  (0.5ms) 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)   (0.2ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id") SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114235359"]]  (36.7ms) commit transaction Migrating to CreateProclaimCommentHierarchies (20141115022230)  (0.2ms) begin transaction  (1.4ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)  (0.3ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.1ms) 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'  (0.1ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]  (24.9ms) commit transaction Migrating to CreateUsers (20141117214323)  (0.2ms) begin transaction  (1.0ms) 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)  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]  (29.7ms) commit transaction Migrating to CreateProclaimSubscriptions (20141210234057)  (0.1ms) begin transaction  (1.6ms) 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)   (0.3ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (0.1ms)  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'   (0.7ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141210234057"]]  (35.9ms) commit transaction Migrating to CreateProclaimImages (20141222224905)  (0.1ms) begin transaction  (1.0ms) 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)  (0.2ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]  (41.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  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'   (0.1ms) 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'  (0.2ms)  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'   (0.2ms) 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'  (0.2ms)  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'   (0.2ms) 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'  (0.1ms)  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'   (0.1ms) 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' ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:50:56.682334"], ["updated_at", "2015-01-03 22:50:56.682334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:50:56.708114"], ["updated_at", "2015-01-03 22:50:56.708114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 2], ["created_at", "2015-01-03 22:50:56.734066"], ["updated_at", "2015-01-03 22:50:56.734066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 22:50:56.740352"], ["updated_at", "2015-01-03 22:50:56.740352"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author1", "body"=>"body1", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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 (349.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (367.2ms) Completed 200 OK in 418ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:50:57.202225"], ["updated_at", "2015-01-03 22:50:57.202225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:50:57.206595"], ["updated_at", "2015-01-03 22:50:57.206595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.208937"], ["updated_at", "2015-01-03 22:50:57.208937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.211442"], ["updated_at", "2015-01-03 22:50:57.211442"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author3", "body"=>"body3", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body3"], ["author", "author3"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:50:57.261857"], ["updated_at", "2015-01-03 22:50:57.261857"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.0ms) 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 (3.9ms) 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 (12.3ms) Completed 200 OK in 62ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:50:57.290508"], ["updated_at", "2015-01-03 22:50:57.290508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title3"], ["body", "body3"], ["author_id", 3], ["published_at", "2015-01-03 22:50:57.292292"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.295625"], ["updated_at", "2015-01-03 22:50:57.295625"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author4"], ["body", "body4"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.305424"], ["updated_at", "2015-01-03 22:50:57.305424"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author5", "body"=>"body5", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body5"], ["author", "author5"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-03 22:50:57.315549"], ["updated_at", "2015-01-03 22:50:57.315549"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.2ms) INSERT 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.8ms) Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:50:57.349613"], ["updated_at", "2015-01-03 22:50:57.349613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 1], ["published_at", "2015-01-03 22:50:57.352434"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.354088"], ["updated_at", "2015-01-03 22:50:57.354088"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.357754"], ["updated_at", "2015-01-03 22:50:57.357754"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:50:57.377009"], ["updated_at", "2015-01-03 22:50:57.377009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.379761"], ["updated_at", "2015-01-03 22:50:57.379761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:50:57.390607"], ["updated_at", "2015-01-03 22:50:57.390607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 2], ["published_at", "2015-01-03 22:50:57.391993"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.393375"], ["updated_at", "2015-01-03 22:50:57.393375"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body9"], ["author", "author9"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.399659"], ["updated_at", "2015-01-03 22:50:57.399659"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.0ms) Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:50:57.419186"], ["updated_at", "2015-01-03 22:50:57.419186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title7"], ["body", "body7"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.421887"], ["updated_at", "2015-01-03 22:50:57.421887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body10"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.424222"], ["updated_at", "2015-01-03 22:50:57.424222"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author10", "body"=>"body10", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) 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)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:50:57.437690"], ["updated_at", "2015-01-03 22:50:57.437690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title8"], ["body", "body8"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.440526"], ["updated_at", "2015-01-03 22:50:57.440526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author11"], ["body", "body11"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.442878"], ["updated_at", "2015-01-03 22:50:57.442878"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:50:57.458007"], ["updated_at", "2015-01-03 22:50:57.458007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title9"], ["body", "body9"], ["author_id", 2], ["published_at", "2015-01-03 22:50:57.459390"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.460799"], ["updated_at", "2015-01-03 22:50:57.460799"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author13"], ["body", "body13"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.463420"], ["updated_at", "2015-01-03 22:50:57.463420"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body14"], ["author", "author14"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-03 22:50:57.473701"], ["updated_at", "2015-01-03 22:50:57.473701"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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 (6.1ms) Completed 200 OK in 18ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:50:57.495814"], ["updated_at", "2015-01-03 22:50:57.495814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.498925"], ["updated_at", "2015-01-03 22:50:57.498925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author15"], ["body", "body15"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.501600"], ["updated_at", "2015-01-03 22:50:57.501600"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:50:57.513073"], ["updated_at", "2015-01-03 22:50:57.513073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title11"], ["body", "body11"], ["author_id", 1], ["published_at", "2015-01-03 22:50:57.514926"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.516398"], ["updated_at", "2015-01-03 22:50:57.516398"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author16", "body"=>"body16", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:50:57.528275"], ["updated_at", "2015-01-03 22:50:57.528275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:50:57.532566"], ["updated_at", "2015-01-03 22:50:57.532566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title12"], ["body", "body12"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.534803"], ["updated_at", "2015-01-03 22:50:57.534803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.536973"], ["updated_at", "2015-01-03 22:50:57.536973"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:50:57.547132"], ["updated_at", "2015-01-03 22:50:57.547132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:50:57.551393"], ["updated_at", "2015-01-03 22:50:57.551393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title13"], ["body", "body13"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.553666"], ["updated_at", "2015-01-03 22:50:57.553666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body18"], ["author", "author18"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.562504"], ["updated_at", "2015-01-03 22:50:57.562504"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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 (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.9ms) Completed 200 OK in 22ms (Views: 0.6ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:50:57.584579"], ["updated_at", "2015-01-03 22:50:57.584579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "body14"], ["author_id", 3], ["published_at", "2015-01-03 22:50:57.585945"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.587818"], ["updated_at", "2015-01-03 22:50:57.587818"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" 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}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body19"], ["author", "author19"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.594252"], ["updated_at", "2015-01-03 22:50:57.594252"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) 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 (3.8ms) 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 (12.6ms) Completed 200 OK in 22ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:50:57.617052"], ["updated_at", "2015-01-03 22:50:57.617052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:50:57.620445"], ["updated_at", "2015-01-03 22:50:57.620445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body15"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.622843"], ["updated_at", "2015-01-03 22:50:57.622843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author20"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.625359"], ["updated_at", "2015-01-03 22:50:57.625359"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:50:57.632183"], ["updated_at", "2015-01-03 22:50:57.632183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title16"], ["body", "body16"], ["author_id", 3], ["created_at", "2015-01-03 22:50:57.634553"], ["updated_at", "2015-01-03 22:50:57.634553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body21"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.636684"], ["updated_at", "2015-01-03 22:50:57.636684"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:50:57.643904"], ["updated_at", "2015-01-03 22:50:57.643904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:50:57.647391"], ["updated_at", "2015-01-03 22:50:57.647391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title17"], ["body", "body17"], ["author_id", 2], ["published_at", "2015-01-03 22:50:57.648807"], ["state", "published"], ["created_at", "2015-01-03 22:50:57.650363"], ["updated_at", "2015-01-03 22:50:57.650363"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:50:57.656101"], ["updated_at", "2015-01-03 22:50:57.656101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body18"], ["author_id", 3], ["created_at", "2015-01-03 22:50:57.659835"], ["updated_at", "2015-01-03 22:50:57.659835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:50:57.664905"], ["updated_at", "2015-01-03 22:50:57.664905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:50:57.668088"], ["updated_at", "2015-01-03 22:50:57.668088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title19"], ["body", "body19"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.670522"], ["updated_at", "2015-01-03 22:50:57.670522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.673248"], ["updated_at", "2015-01-03 22:50:57.673248"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:50:57.680387"], ["updated_at", "2015-01-03 22:50:57.680387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:50:57.683701"], ["updated_at", "2015-01-03 22:50:57.683701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body20"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.686200"], ["updated_at", "2015-01-03 22:50:57.686200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.688721"], ["updated_at", "2015-01-03 22:50:57.688721"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email1@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (6.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (8.5ms) Completed 200 OK in 214ms (Views: 210.7ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email2@example.com"], ["created_at", "2015-01-03 22:50:57.926484"], ["updated_at", "2015-01-03 22:50:57.926484"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a5116f48-120a-4e68-8854-b3ea9f1d24f3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a5116f48-120a-4e68-8854-b3ea9f1d24f3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a5116f48-120a-4e68-8854-b3ea9f1d24f3] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5116f48-120a-4e68-8854-b3ea9f1d24f3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 119.8ms [ActiveJob] [ActionMailer::DeliveryJob] [a5116f48-120a-4e68-8854-b3ea9f1d24f3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 120.31ms  (0.8ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:51:05.333299"], ["updated_at", "2015-01-03 22:51:05.333299"]]  (50.3ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:51:10 -0500 Processing by Proclaim::PostsController#new as HTML Completed 500 Internal Server Error in 1ms  (77.3ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (53.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (52.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (54.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.7ms) DELETE FROM sqlite_sequence where name = 'users';  (35.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (47.5ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.5ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:51:10.643030"], ["updated_at", "2015-01-03 22:51:10.643030"]]  (48.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:51:10.716182"], ["updated_at", "2015-01-03 22:51:10.716182"]]  (54.8ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title1"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-03 22:51:10.822002"], ["updated_at", "2015-01-03 22:51:10.822002"]]  (46.4ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:51:10 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (59.7ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (43.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (53.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (50.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.4ms) DELETE FROM sqlite_sequence where name = 'users';  (42.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.1ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:51:11.346987"], ["updated_at", "2015-01-03 22:51:11.346987"]]  (55.7ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:51:11 -0500 Processing by Proclaim::PostsController#new as HTML Completed 500 Internal Server Error in 0ms  (48.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (53.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (41.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.2ms) DELETE FROM sqlite_sequence where name = 'users';  (43.0ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:51:11.783317"], ["updated_at", "2015-01-03 22:51:11.783317"]]  (49.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:51:11.836320"], ["updated_at", "2015-01-03 22:51:11.836320"]]  (47.1ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title2"], ["body", "body1"], ["author_id", 2], ["created_at", "2015-01-03 22:51:11.890013"], ["updated_at", "2015-01-03 22:51:11.890013"]]  (68.4ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:11.970349"], ["updated_at", "2015-01-03 22:51:11.970349"]]  (80.9ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-03 22:51:12.059820"], ["id", 1]]  (47.2ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:51:12 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (48.3ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (60.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (58.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (51.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.1ms) DELETE FROM "users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (51.1ms) DELETE FROM sqlite_sequence where name = 'users';  (50.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (41.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (52.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:51:12.678249"], ["updated_at", "2015-01-03 22:51:12.678249"]]  (49.7ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:51:12 -0500 Processing by Proclaim::PostsController#new as HTML Completed 500 Internal Server Error in 0ms  (49.2ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (48.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (50.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (49.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (56.7ms) DELETE FROM sqlite_sequence where name = 'users';  (52.7ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (55.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:51:13.164354"], ["updated_at", "2015-01-03 22:51:13.164354"]]  (50.9ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:51:13.222417"], ["updated_at", "2015-01-03 22:51:13.222417"]]  (46.1ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title3"], ["body", "body2"], ["author_id", 2], ["created_at", "2015-01-03 22:51:13.276723"], ["updated_at", "2015-01-03 22:51:13.276723"]]  (52.6ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:13.342674"], ["updated_at", "2015-01-03 22:51:13.342674"]]  (54.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 22:51:13.408650"], ["id", 1]]  (52.5ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:51:13 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (51.9ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (63.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (55.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (57.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (47.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (50.4ms) DELETE FROM sqlite_sequence where name = 'users';  (40.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (50.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:51:14.012060"], ["updated_at", "2015-01-03 22:51:14.012060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:51:14.026451"], ["updated_at", "2015-01-03 22:51:14.026451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title4"], ["body", "body3"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.028762"], ["updated_at", "2015-01-03 22:51:14.028762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.031708"], ["updated_at", "2015-01-03 22:51:14.031708"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:51:14.083492"], ["updated_at", "2015-01-03 22:51:14.083492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:51:14.090311"], ["updated_at", "2015-01-03 22:51:14.090311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body4"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.094513"], ["updated_at", "2015-01-03 22:51:14.094513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.096805"], ["updated_at", "2015-01-03 22:51:14.096805"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:51:14.103542"], ["updated_at", "2015-01-03 22:51:14.103542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title6"], ["body", "body5"], ["author_id", 3], ["created_at", "2015-01-03 22:51:14.105716"], ["updated_at", "2015-01-03 22:51:14.105716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.107576"], ["updated_at", "2015-01-03 22:51:14.107576"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:51:14.115160"], ["updated_at", "2015-01-03 22:51:14.115160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:51:14.119462"], ["updated_at", "2015-01-03 22:51:14.119462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title7"], ["body", "body6"], ["author_id", 2], ["published_at", "2015-01-03 22:51:14.121709"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.129887"], ["updated_at", "2015-01-03 22:51:14.129887"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:51:14.135134"], ["updated_at", "2015-01-03 22:51:14.135134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title8"], ["body", "body7"], ["author_id", 3], ["created_at", "2015-01-03 22:51:14.137204"], ["updated_at", "2015-01-03 22:51:14.137204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:51:14.140160"], ["updated_at", "2015-01-03 22:51:14.140160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:51:14.143448"], ["updated_at", "2015-01-03 22:51:14.143448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title9"], ["body", "body8"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.145838"], ["updated_at", "2015-01-03 22:51:14.145838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.148136"], ["updated_at", "2015-01-03 22:51:14.148136"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:51:14.162632"], ["updated_at", "2015-01-03 22:51:14.162632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body9"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.165561"], ["updated_at", "2015-01-03 22:51:14.165561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author7"], ["body", "body7"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.167884"], ["updated_at", "2015-01-03 22:51:14.167884"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:51:14.184497"], ["updated_at", "2015-01-03 22:51:14.184497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:51:14.188539"], ["updated_at", "2015-01-03 22:51:14.188539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title11"], ["body", "body10"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.191184"], ["updated_at", "2015-01-03 22:51:14.191184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author8"], ["body", "body8"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.193687"], ["updated_at", "2015-01-03 22:51:14.193687"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body9"], ["author", "author9"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:51:14.208512"], ["updated_at", "2015-01-03 22:51:14.208512"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.3ms) 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 (390.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 (417.6ms) Completed 200 OK in 473ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:51:14.682612"], ["updated_at", "2015-01-03 22:51:14.682612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title12"], ["body", "body11"], ["author_id", 3], ["published_at", "2015-01-03 22:51:14.683936"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.685258"], ["updated_at", "2015-01-03 22:51:14.685258"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body10"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.687900"], ["updated_at", "2015-01-03 22:51:14.687900"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body11"], ["author", "author11"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-03 22:51:14.696801"], ["updated_at", "2015-01-03 22:51:14.696801"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.1ms) INSERT 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.1ms) 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.1ms) Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:51:14.725372"], ["updated_at", "2015-01-03 22:51:14.725372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title13"], ["body", "body12"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.728126"], ["updated_at", "2015-01-03 22:51:14.728126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:51:14.738543"], ["updated_at", "2015-01-03 22:51:14.738543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "body13"], ["author_id", 2], ["published_at", "2015-01-03 22:51:14.739779"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.741113"], ["updated_at", "2015-01-03 22:51:14.741113"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author13", "body"=>"body13", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body13"], ["author", "author13"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.746684"], ["updated_at", "2015-01-03 22:51:14.746684"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.3ms) Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:51:14.765995"], ["updated_at", "2015-01-03 22:51:14.765995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:51:14.769908"], ["updated_at", "2015-01-03 22:51:14.769908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body14"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.772071"], ["updated_at", "2015-01-03 22:51:14.772071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body14"], ["author", "author14"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.780029"], ["updated_at", "2015-01-03 22:51:14.780029"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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.0ms) 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.2ms) Completed 200 OK in 23ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:51:14.803506"], ["updated_at", "2015-01-03 22:51:14.803506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title16"], ["body", "body15"], ["author_id", 3], ["published_at", "2015-01-03 22:51:14.804912"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.806251"], ["updated_at", "2015-01-03 22:51:14.806251"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body15"], ["author", "author15"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.811896"], ["updated_at", "2015-01-03 22:51:14.811896"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) 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.0ms) 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 (12.5ms) Completed 200 OK in 21ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:51:14.834221"], ["updated_at", "2015-01-03 22:51:14.834221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:51:14.838041"], ["updated_at", "2015-01-03 22:51:14.838041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body16"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.840161"], ["updated_at", "2015-01-03 22:51:14.840161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body16"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.842345"], ["updated_at", "2015-01-03 22:51:14.842345"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 22:51:14.854177"], ["updated_at", "2015-01-03 22:51:14.854177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body17"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.856840"], ["updated_at", "2015-01-03 22:51:14.856840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.859211"], ["updated_at", "2015-01-03 22:51:14.859211"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:51:14.874146"], ["updated_at", "2015-01-03 22:51:14.874146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title19"], ["body", "body18"], ["author_id", 2], ["published_at", "2015-01-03 22:51:14.875470"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.876884"], ["updated_at", "2015-01-03 22:51:14.876884"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body19"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.879969"], ["updated_at", "2015-01-03 22:51:14.879969"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author20", "body"=>"body20", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body20"], ["author", "author20"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-03 22:51:14.888996"], ["updated_at", "2015-01-03 22:51:14.888996"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.2ms) Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:51:14.910082"], ["updated_at", "2015-01-03 22:51:14.910082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body19"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.912675"], ["updated_at", "2015-01-03 22:51:14.912675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.915008"], ["updated_at", "2015-01-03 22:51:14.915008"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:51:14.926797"], ["updated_at", "2015-01-03 22:51:14.926797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "body20"], ["author_id", 1], ["published_at", "2015-01-03 22:51:14.928484"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.929911"], ["updated_at", "2015-01-03 22:51:14.929911"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.932952"], ["updated_at", "2015-01-03 22:51:14.932952"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author23", "body"=>"body23", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:51:14.950076"], ["updated_at", "2015-01-03 22:51:14.950076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title22"], ["body", "body21"], ["author_id", 1], ["published_at", "2015-01-03 22:51:14.951754"], ["state", "published"], ["created_at", "2015-01-03 22:51:14.953170"], ["updated_at", "2015-01-03 22:51:14.953170"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author24", "body"=>"body24", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:51:14.964803"], ["updated_at", "2015-01-03 22:51:14.964803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 22:51:14.969243"], ["updated_at", "2015-01-03 22:51:14.969243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title23"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.971782"], ["updated_at", "2015-01-03 22:51:14.971782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.974068"], ["updated_at", "2015-01-03 22:51:14.974068"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author25", "body"=>"body25", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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 (3.9ms) 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 (12.5ms) Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:51:15.005040"], ["updated_at", "2015-01-03 22:51:15.005040"]]  (18.3ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title24"], ["body", "body23"], ["author_id", 1], ["published_at", "2015-01-03 22:51:15.025596"], ["state", "published"], ["created_at", "2015-01-03 22:51:15.030288"], ["updated_at", "2015-01-03 22:51:15.030288"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (28.4ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-03 22:51:15.070136"], ["updated_at", "2015-01-03 22:51:15.070136"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (16.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:51:15 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) 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.4ms) 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 (13.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (28.1ms) Completed 200 OK in 143ms (Views: 139.3ms | ActiveRecord: 0.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 17:51:15 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 17:51:15 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:16 -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"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:51:16.227660"], ["updated_at", "2015-01-03 22:51:16.227660"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.6ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (57.4ms) commit transaction Proclaim::Comment Load (0.4ms) 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", 2]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (4.9ms) Completed 200 OK in 97ms (Views: 0.4ms | ActiveRecord: 61.3ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 17:51:16 -0500 Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:17 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) 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-03 22:51:17.130827"], ["updated_at", "2015-01-03 22:51:17.130827"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (62.3ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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 (6.6ms) Completed 200 OK in 95ms (Views: 1.3ms | ActiveRecord: 65.3ms)  (63.9ms) DELETE FROM "proclaim_posts"; ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:51:45.998472"], ["updated_at", "2015-01-03 22:51:45.998472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 2], ["created_at", "2015-01-03 22:51:46.007934"], ["updated_at", "2015-01-03 22:51:46.007934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:51:46.011966"], ["updated_at", "2015-01-03 22:51:46.011966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:51:46.345265"], ["updated_at", "2015-01-03 22:51:46.345265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:51:46.349885"], ["updated_at", "2015-01-03 22:51:46.349885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 5], ["published_at", "2015-01-03 22:51:46.351168"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.352402"], ["updated_at", "2015-01-03 22:51:46.352402"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:51:46.360847"], ["updated_at", "2015-01-03 22:51:46.360847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.362578"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.363981"], ["updated_at", "2015-01-03 22:51:46.363981"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:51:46.368140"], ["updated_at", "2015-01-03 22:51:46.368140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.369719"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.371399"], ["updated_at", "2015-01-03 22:51:46.371399"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:51:46.376059"], ["updated_at", "2015-01-03 22:51:46.376059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:51:46.378786"], ["updated_at", "2015-01-03 22:51:46.378786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:51:46.381843"], ["updated_at", "2015-01-03 22:51:46.381843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:51:46.384217"], ["updated_at", "2015-01-03 22:51:46.384217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:51:46.386439"], ["updated_at", "2015-01-03 22:51:46.386439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:51:46.390697"], ["updated_at", "2015-01-03 22:51:46.390697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:51:46.405943"], ["updated_at", "2015-01-03 22:51:46.405943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:51:46.410066"], ["updated_at", "2015-01-03 22:51:46.410066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:51:46.414584"], ["updated_at", "2015-01-03 22:51:46.414584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:51:46.419443"], ["updated_at", "2015-01-03 22:51:46.419443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:51:46.423483"], ["updated_at", "2015-01-03 22:51:46.423483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:51:46.428915"], ["updated_at", "2015-01-03 22:51:46.428915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title19"], ["body", "body10"], ["author_id", 2], ["created_at", "2015-01-03 22:51:46.431752"], ["updated_at", "2015-01-03 22:51:46.431752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:51:46.443005"], ["updated_at", "2015-01-03 22:51:46.443005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title20"], ["body", "Enim commodi reiciendis rerum veritatis voluptas vel. Consequuntur omnis ad doloremque dolor et. Corporis dolor ut officiis soluta sunt error. Sunt provident quaerat animi consequatur ea. Autem quae minus totam est. Sunt nemo in. Doloremque nesciunt dolore explicabo laboriosam dolorem et deleniti. Voluptatem sed perspiciatis quos quas assumenda. Commodi quibusdam voluptas quia aliquid. Non dolor aut molestiae. Et praesentium occaecati dolores consequuntur et tempore hic. Mollitia aut consequatur inventore. Accusantium in quas occaecati aliquid velit. Ut non ut repudiandae quia et laboriosam voluptatem. Quam repellendus at inventore atque tempora culpa. Cum omnis sunt architecto. Eos aliquid qui dolores a. Temporibus culpa occaecati. Possimus omnis magni optio explicabo. Blanditiis hic natus deleniti consequuntur. In ullam vitae ipsa nesciunt expedita quis et. Adipisci sit aliquid eius nihil omnis. Corporis ea culpa non et rerum totam. Cumque sapiente labore nesciunt. Rerum neque culpa repellat aliquam. Dolorum blanditiis dolorem sit expedita eos. Iste in hic doloribus veniam ipsa vitae quasi. Recusandae est consequatur error pariatur asperiores animi. Repellat porro sequi voluptas nihil voluptatum modi. Illo eos commodi sit sed quibusdam odit. Ratione facilis ad possimus nihil consequatur molestiae accusantium. Culpa a dolor inventore. Rem est et id. Laborum quibusdam quia nihil iste laboriosam doloremque aut. Eum beatae deserunt. Accusantium accusamus ea. Officia minus et maxime aut. Nesciunt pariatur porro qui dicta. Et iste aperiam dolor. Quia a voluptas ad consequatur. Tenetur et dolor modi dolore. Rerum itaque qui temporibus fuga aut. Corporis expedita itaque ex. Vero incidunt modi. Sed eum quod. Qui eius provident veritatis sed enim dolor ut. Ipsam velit aut. Dolores qui consequatur facere optio animi nostrum dolor. Et omnis ea provident ab dolorum iste. Modi porro nostrum minus."], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.444768"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.446353"], ["updated_at", "2015-01-03 22:51:46.446353"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:51:46.450882"], ["updated_at", "2015-01-03 22:51:46.450882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "foo"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.452304"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.453848"], ["updated_at", "2015-01-03 22:51:46.453848"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (6.5ms) Completed 200 OK in 54ms (Views: 51.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:51:46.534661"], ["updated_at", "2015-01-03 22:51:46.534661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title22"], ["body", "body11"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.536327"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.537661"], ["updated_at", "2015-01-03 22:51:46.537661"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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 (2.8ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:51:46.553272"], ["updated_at", "2015-01-03 22:51:46.553272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:51:46.559958"], ["updated_at", "2015-01-03 22:51:46.559958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title23"], ["body", "body12"], ["author_id", 3], ["created_at", "2015-01-03 22:51:46.562672"], ["updated_at", "2015-01-03 22:51:46.562672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 2], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:46.567901"], ["updated_at", "2015-01-03 22:51:46.567901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 22:51:46.571996"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:51:46.578888"], ["updated_at", "2015-01-03 22:51:46.578888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title24"], ["body", "body13"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.580764"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.582281"], ["updated_at", "2015-01-03 22:51:46.582281"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/2" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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 (11.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (32.3ms) Completed 200 OK in 36ms (Views: 33.6ms | ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.0ms) 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 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:51:46.642076"], ["updated_at", "2015-01-03 22:51:46.642076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title25"], ["body", "body14"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.643727"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.645026"], ["updated_at", "2015-01-03 22:51:46.645026"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) 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 (2.8ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:51:46.663244"], ["updated_at", "2015-01-03 22:51:46.663244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title26"], ["body", "Tenetur ut ab praesentium ex quaerat aperiam eum. Id temporibus est. Incidunt itaque tenetur. Consequatur aut corporis aspernatur voluptates neque dolores laboriosam. Quae et recusandae voluptatem praesentium dolorem exercitationem veniam. Iusto veritatis id suscipit error non temporibus. Perspiciatis facere eius magnam illo vel nam sit. Quo quibusdam iusto. Quod magni doloremque facilis quasi similique aut. Impedit qui quae est. Blanditiis eos dolorum. Et commodi aut illo impedit reprehenderit. Voluptatem provident et est. Possimus et ea quia. Ut labore qui sunt expedita dolorem. Nobis accusantium et. Dolores velit et debitis harum laboriosam deserunt. Magnam explicabo et totam. Mollitia repellat repellendus. Nisi dolor nam nihil et placeat nulla. Eum aliquam et placeat natus. Nobis sint est dolor quia quos dolor omnis. Et quaerat culpa exercitationem et nulla. Neque quam rerum et laborum sequi. Magni corrupti aut. Illo aliquam veniam dicta animi qui. Optio fuga recusandae est sequi reprehenderit aspernatur. Incidunt ratione corporis at earum sed molestias beatae. Iure fugit qui beatae. Numquam rerum soluta amet architecto odio voluptatem fugit. Cum amet quisquam quos eos accusantium sed. Itaque dolorum veritatis fugiat voluptatum sunt perferendis. Perspiciatis rem est exercitationem omnis. Voluptatem nostrum fugit. Mollitia eligendi optio sed et commodi nisi non. Deserunt consequatur ab rem. Amet aut voluptas assumenda. Recusandae quidem veritatis ducimus et voluptas consequatur labore. Voluptatem nemo repudiandae qui sunt repellendus quidem. Officiis sint a vel quam est eveniet non. Voluptate eum ut. Inventore ut molestias et rerum suscipit distinctio dignissimos. Architecto et accusamus fuga in est. Eum autem consequatur dicta officia. Sit ipsum qui harum nihil. Assumenda id adipisci quod voluptatem. Et soluta porro rerum assumenda. Cumque ut perspiciatis. Qui cumque deserunt. Dolore inventore est alias."], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.665204"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.666730"], ["updated_at", "2015-01-03 22:51:46.666730"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:51:46.670337"], ["updated_at", "2015-01-03 22:51:46.670337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "foo"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.671498"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.672681"], ["updated_at", "2015-01-03 22:51:46.672681"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.0ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:51:46.690798"], ["updated_at", "2015-01-03 22:51:46.690798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title28"], ["body", "body15"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.692605"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.693911"], ["updated_at", "2015-01-03 22:51:46.693911"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:51:46.697337"], ["updated_at", "2015-01-03 22:51:46.697337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title29"], ["body", "body16"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.698745"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.700001"], ["updated_at", "2015-01-03 22:51:46.700001"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.8ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:51:46.716342"], ["updated_at", "2015-01-03 22:51:46.716342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 22:51:46.719593"], ["updated_at", "2015-01-03 22:51:46.719593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title30"], ["body", "body17"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.721028"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.722609"], ["updated_at", "2015-01-03 22:51:46.722609"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] 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.0ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:51:46.738260"], ["updated_at", "2015-01-03 22:51:46.738260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:51:46.740837"], ["updated_at", "2015-01-03 22:51:46.740837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body18"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.741975"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.743266"], ["updated_at", "2015-01-03 22:51:46.743266"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] 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.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:51:46.760458"], ["updated_at", "2015-01-03 22:51:46.760458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title32"], ["body", "body19"], ["author_id", 2], ["published_at", "2015-01-03 22:51:46.762117"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.763401"], ["updated_at", "2015-01-03 22:51:46.763401"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:51:46.767774"], ["updated_at", "2015-01-03 22:51:46.767774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title33"], ["body", "body20"], ["author_id", 3], ["published_at", "2015-01-03 22:51:46.768994"], ["state", "published"], ["created_at", "2015-01-03 22:51:46.770228"], ["updated_at", "2015-01-03 22:51:46.770228"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:51:46.787418"], ["updated_at", "2015-01-03 22:51:46.787418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-03 22:51:46.988056"], ["updated_at", "2015-01-03 22:51:46.988056"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4b3b550f-273b-4b2b-aeeb-1f524567f399) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 78.9ms [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Sent mail to email1@example.com (13.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email1@example.com Message-ID: <54a8728318176_6414b25318217c8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87283167c8_6414b25318216ed"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87283167c8_6414b25318216ed 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_54a87283167c8_6414b25318216ed 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_54a87283167c8_6414b25318216ed-- [ActiveJob] [ActionMailer::DeliveryJob] [4b3b550f-273b-4b2b-aeeb-1f524567f399] Performed ActionMailer::DeliveryJob from Inline(mailers) in 93.09ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 22:51:47.109269"], ["updated_at", "2015-01-03 22:51:47.109269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body21"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.112030"], ["updated_at", "2015-01-03 22:51:47.112030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 2], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:47.115867"], ["updated_at", "2015-01-03 22:51:47.115867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-03 22:51:47.118193"], ["state", "published"], ["updated_at", "2015-01-03 22:51:47.119858"], ["id", 2]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d2ba1d4b-7e8e-4348-a90c-cf3269579045) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] 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/2 [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 34.0ms [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Sent mail to email1@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email1@example.com Message-ID: <54a872832710b_6414b25318219a4@Pandora.mail> Subject: New Post: title34 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8728326792_6414b25318218a9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8728326792_6414b25318218a9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title34 ******* Written on January 03, 2015 at 10:51 PM UTC by first_name37 last_name37 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_54a8728326792_6414b25318218a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title34

----==_mimepart_54a8728326792_6414b25318218a9-- [ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.01ms  (0.1ms) 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.8ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.9ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email2@example.com"], ["created_at", "2015-01-03 22:51:47.191833"], ["updated_at", "2015-01-03 22:51:47.191833"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b34f1650-b961-44f7-85ed-917336cda0e2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b34f1650-b961-44f7-85ed-917336cda0e2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b34f1650-b961-44f7-85ed-917336cda0e2] 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] [b34f1650-b961-44f7-85ed-917336cda0e2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.8ms [ActiveJob] [ActionMailer::DeliveryJob] [b34f1650-b961-44f7-85ed-917336cda0e2] Sent mail to email2@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b34f1650-b961-44f7-85ed-917336cda0e2] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email2@example.com Message-ID: <54a87283361ec_6414b25318222fa@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87283358f9_6414b25318221a7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87283358f9_6414b25318221a7 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_54a87283358f9_6414b25318221a7 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_54a87283358f9_6414b25318221a7-- [ActiveJob] [ActionMailer::DeliveryJob] [b34f1650-b961-44f7-85ed-917336cda0e2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.67ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:51:47.225873"], ["updated_at", "2015-01-03 22:51:47.225873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title35"], ["body", "body22"], ["author_id", 2], ["published_at", "2015-01-03 22:51:47.227369"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.228620"], ["updated_at", "2015-01-03 22:51:47.228620"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 83b3645e-8f36-4583-9164-57a11c6e03bd) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] 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/2 [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] 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] [83b3645e-8f36-4583-9164-57a11c6e03bd] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 20.6ms [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] Sent mail to email2@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email2@example.com Message-ID: <54a872833e551_6414b2531822427@Pandora.mail> Subject: New Post: title35 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872833dd3b_6414b253182232b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872833dd3b_6414b253182232b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title35 ******* body22 Written on January 03, 2015 at 10:51 PM UTC by first_name38 last_name38 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_54a872833dd3b_6414b253182232b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title35

body22
----==_mimepart_54a872833dd3b_6414b253182232b-- [ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.19ms  (0.1ms) 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 19.4ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email3@example.com"], ["created_at", "2015-01-03 22:51:47.287384"], ["updated_at", "2015-01-03 22:51:47.287384"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] 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] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.7ms [ActiveJob] [ActionMailer::DeliveryJob] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] Sent mail to email3@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email3@example.com Message-ID: <54a872834d681_6414b2531822796@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872834cdb0_6414b253182262b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872834cdb0_6414b253182262b 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_54a872834cdb0_6414b253182262b 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_54a872834cdb0_6414b253182262b-- [ActiveJob] [ActionMailer::DeliveryJob] [3b6b4b1b-4fcc-48eb-ac31-1b8d0cbcd544] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.43ms  (0.1ms) 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.1ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 22.7ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 22:51:47.351634"], ["updated_at", "2015-01-03 22:51:47.351634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title36"], ["body", "body23"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.354269"], ["updated_at", "2015-01-03 22:51:47.354269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email4@example.com"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.357159"], ["updated_at", "2015-01-03 22:51:47.357159"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 15e5d521-84da-47b0-bb9d-0b4b04757a7f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] 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] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.4ms [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Sent mail to email4@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Date: Sat, 03 Jan 2015 17:51:47 -0500 From: from@example.com To: email4@example.com Message-ID: <54a872835f9fc_6414b2531823089@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872835f100_6414b25318229aa"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872835f100_6414b25318229aa 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/2 ). 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/2 ) 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_54a872835f100_6414b25318229aa 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_54a872835f100_6414b25318229aa-- [ActiveJob] [ActionMailer::DeliveryJob] [15e5d521-84da-47b0-bb9d-0b4b04757a7f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.17ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 22:51:47.396546"], ["updated_at", "2015-01-03 22:51:47.396546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", "body24"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.399006"], ["updated_at", "2015-01-03 22:51:47.399006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.401059"], ["updated_at", "2015-01-03 22:51:47.401059"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.5ms) Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 26.6ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 22:51:47.455374"], ["updated_at", "2015-01-03 22:51:47.455374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title38"], ["body", "body25"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.458015"], ["updated_at", "2015-01-03 22:51:47.458015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 22:51:47.470698"], ["updated_at", "2015-01-03 22:51:47.470698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title39"], ["body", "body26"], ["author_id", 3], ["published_at", "2015-01-03 22:51:47.471925"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.473209"], ["updated_at", "2015-01-03 22:51:47.473209"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author3", "body"=>"body3", "post_id"=>3, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body3"], ["author", "author3"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.479507"], ["updated_at", "2015-01-03 22:51:47.479507"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.2ms) Completed 200 OK in 28ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 22:51:47.507712"], ["updated_at", "2015-01-03 22:51:47.507712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 22:51:47.511405"], ["updated_at", "2015-01-03 22:51:47.511405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body27"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.513587"], ["updated_at", "2015-01-03 22:51:47.513587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author4"], ["body", "body4"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.515994"], ["updated_at", "2015-01-03 22:51:47.515994"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"4"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 4 ) AS x ) OR descendant_id = 4  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 22:51:47.531512"], ["updated_at", "2015-01-03 22:51:47.531512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title41"], ["body", "body28"], ["author_id", 2], ["published_at", "2015-01-03 22:51:47.533450"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.535024"], ["updated_at", "2015-01-03 22:51:47.535024"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author5", "body"=>"body5", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 22:51:47.547764"], ["updated_at", "2015-01-03 22:51:47.547764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body29"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.550442"], ["updated_at", "2015-01-03 22:51:47.550442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body6"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.552634"], ["updated_at", "2015-01-03 22:51:47.552634"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author6", "body"=>"body6", "post_id"=>2}, "id"=>"4"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 22:51:47.564131"], ["updated_at", "2015-01-03 22:51:47.564131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 22:51:47.568650"], ["updated_at", "2015-01-03 22:51:47.568650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title43"], ["body", "body30"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.571129"], ["updated_at", "2015-01-03 22:51:47.571129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author7"], ["body", "body7"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.573656"], ["updated_at", "2015-01-03 22:51:47.573656"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>2}, "id"=>"4"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Proclaim::Post Load (0.0ms) 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 (3.6ms) 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 (13.7ms) Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 22:51:47.604403"], ["updated_at", "2015-01-03 22:51:47.604403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title44"], ["body", "body31"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.606986"], ["updated_at", "2015-01-03 22:51:47.606986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author8"], ["body", "body8"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.610561"], ["updated_at", "2015-01-03 22:51:47.610561"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 22:51:47.631635"], ["updated_at", "2015-01-03 22:51:47.631635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title45"], ["body", "body32"], ["author_id", 3], ["published_at", "2015-01-03 22:51:47.633182"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.634681"], ["updated_at", "2015-01-03 22:51:47.634681"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body10"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.637918"], ["updated_at", "2015-01-03 22:51:47.637918"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>3, "parent_id"=>5}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 5]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body11"], ["author", "author11"], ["post_id", 3], ["parent_id", 5], ["created_at", "2015-01-03 22:51:47.648388"], ["updated_at", "2015-01-03 22:51:47.648388"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 6], ["descendant_id", 6], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 6, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 5  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 6]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 5]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 6]] 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/_comment.html.erb (6.7ms) Completed 200 OK in 19ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 5]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 5]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 5]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 22:51:47.672005"], ["updated_at", "2015-01-03 22:51:47.672005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 22:51:47.676266"], ["updated_at", "2015-01-03 22:51:47.676266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title46"], ["body", "body33"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.678827"], ["updated_at", "2015-01-03 22:51:47.678827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body12"], ["author", "author12"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.688089"], ["updated_at", "2015-01-03 22:51:47.688089"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Proclaim::Post Load (0.1ms) 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.7ms) 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/_comment.html.erb (14.9ms) Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 22:51:47.714004"], ["updated_at", "2015-01-03 22:51:47.714004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title47"], ["body", "body34"], ["author_id", 4], ["published_at", "2015-01-03 22:51:47.715507"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.717150"], ["updated_at", "2015-01-03 22:51:47.717150"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author13", "body"=>"body13", "post_id"=>3, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body13"], ["author", "author13"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.723831"], ["updated_at", "2015-01-03 22:51:47.723831"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 5]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 5]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]] 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 (12.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (22.5ms) Completed 200 OK in 32ms (Views: 0.7ms | ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 22:51:47.758411"], ["updated_at", "2015-01-03 22:51:47.758411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title48"], ["body", "body35"], ["author_id", 2], ["published_at", "2015-01-03 22:51:47.760399"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.761920"], ["updated_at", "2015-01-03 22:51:47.761920"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author14"], ["body", "body14"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.765527"], ["updated_at", "2015-01-03 22:51:47.765527"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 22:51:47.784462"], ["updated_at", "2015-01-03 22:51:47.784462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.787492"], ["updated_at", "2015-01-03 22:51:47.787492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body16"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.790405"], ["updated_at", "2015-01-03 22:51:47.790405"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"4"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 22:51:47.804291"], ["updated_at", "2015-01-03 22:51:47.804291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 22:51:47.808611"], ["updated_at", "2015-01-03 22:51:47.808611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title50"], ["body", "body37"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.811745"], ["updated_at", "2015-01-03 22:51:47.811745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body17"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.814497"], ["updated_at", "2015-01-03 22:51:47.814497"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body18"], ["author", "author18"], ["post_id", 2], ["parent_id", 4], ["created_at", "2015-01-03 22:51:47.830606"], ["updated_at", "2015-01-03 22:51:47.830606"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 5, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 4 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 5]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 5]] 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/_form.html.erb (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.9ms) Completed 200 OK in 27ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 4]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 4]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-03 22:51:47.859442"], ["updated_at", "2015-01-03 22:51:47.859442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title51"], ["body", "body38"], ["author_id", 4], ["published_at", "2015-01-03 22:51:47.860978"], ["state", "published"], ["created_at", "2015-01-03 22:51:47.862332"], ["updated_at", "2015-01-03 22:51:47.862332"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body19"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.865062"], ["updated_at", "2015-01-03 22:51:47.865062"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 6], ["descendant_id", 6], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 6]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author20", "body"=>"body20", "post_id"=>3, "parent_id"=>6}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 6]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body20"], ["author", "author20"], ["post_id", 3], ["parent_id", 6], ["created_at", "2015-01-03 22:51:47.876100"], ["updated_at", "2015-01-03 22:51:47.876100"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 7], ["descendant_id", 7], ["generations", 0]]  (0.1ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 7, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 6  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 7]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 7]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 6]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 7]] 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/_form.html.erb (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.8ms) Completed 200 OK in 23ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 6]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 6]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 6]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) rollback transaction ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 22:51:47.960910"], ["updated_at", "2015-01-03 22:51:47.960910"]]  (60.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title52"], ["body", "body39"], ["author_id", 2], ["published_at", "2015-01-03 22:51:48.023810"], ["state", "published"], ["created_at", "2015-01-03 22:51:48.028316"], ["updated_at", "2015-01-03 22:51:48.028316"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.0ms) commit transaction  (0.3ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body21"], ["post_id", 2], ["created_at", "2015-01-03 22:51:48.064739"], ["updated_at", "2015-01-03 22:51:48.064739"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (1.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (33.0ms) commit transaction Started GET "/proclaim/posts/2" for 127.0.0.1 at 2015-01-03 17:51:51 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.8ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.4ms) 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]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (7.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (33.4ms) Completed 200 OK in 39ms (Views: 34.4ms | ActiveRecord: 2.1ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 17:51:52 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 17:51:52 -0500  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:53 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"2", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"2"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 17:51:53 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (216.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (76.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (59.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (50.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.1ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.9ms) DELETE FROM sqlite_sequence where name = 'users';  (46.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (43.4ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 22:51:54.153531"], ["updated_at", "2015-01-03 22:51:54.153531"]]  (53.7ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body40"], ["author_id", 1], ["published_at", "2015-01-03 22:51:54.210098"], ["state", "published"], ["created_at", "2015-01-03 22:51:54.214087"], ["updated_at", "2015-01-03 22:51:54.214087"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (172.5ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-03 22:51:54.396645"], ["updated_at", "2015-01-03 22:51:54.396645"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:51:54 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) 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.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.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 (14.9ms) Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:55 -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"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 6ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (67.6ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (55.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (70.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (48.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (51.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (46.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.2ms) DELETE FROM sqlite_sequence where name = 'users';  (49.1ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 22:51:55.920098"], ["updated_at", "2015-01-03 22:51:55.920098"]]  (45.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title54"], ["body", "body41"], ["author_id", 1], ["published_at", "2015-01-03 22:51:55.968051"], ["state", "published"], ["created_at", "2015-01-03 22:51:55.969826"], ["updated_at", "2015-01-03 22:51:55.969826"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:51:56 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.9ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51: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"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) 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-03 22:51:56.779551"], ["updated_at", "2015-01-03 22:51:56.779551"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.0ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 2.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (56.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (46.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.2ms) DELETE FROM sqlite_sequence where name = 'users';  (52.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.1ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 22:51:57.236954"], ["updated_at", "2015-01-03 22:51:57.236954"]]  (52.2ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-03 22:51:57.294661"], ["updated_at", "2015-01-03 22:51:57.294661"]]  (47.1ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title55"], ["body", "body42"], ["author_id", 2], ["published_at", "2015-01-03 22:51:57.345141"], ["state", "published"], ["created_at", "2015-01-03 22:51:57.347776"], ["updated_at", "2015-01-03 22:51:57.347776"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:51:57 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:58 -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"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-03 22:51:58.101813"], ["updated_at", "2015-01-03 22:51:58.101813"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:51:58.113386"], ["updated_at", "2015-01-03 22:51:58.113386"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.5ms [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Sent mail to example@example.com (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Date: Sat, 03 Jan 2015 17:51:58 -0500 From: from@example.com To: example@example.com Message-ID: <54a8728e26060_64142077040233d1@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8728e25485_641420770402328d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8728e25485_641420770402328d 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_54a8728e25485_641420770402328d 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_54a8728e25485_641420770402328d-- [ActiveJob] [ActionMailer::DeliveryJob] [e9e4ed7e-2ea0-4e45-8ff4-659dfaff0b26] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.03ms  (75.9ms) commit transaction Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (3.6ms) 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 (13.9ms) Completed 200 OK in 163ms (Views: 0.7ms | ActiveRecord: 78.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (55.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (46.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (56.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (49.0ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (53.2ms) DELETE FROM sqlite_sequence where name = 'users';  (45.8ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (49.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (47.0ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-03 22:51:58.801729"], ["updated_at", "2015-01-03 22:51:58.801729"]]  (50.6ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title56"], ["body", "body43"], ["author_id", 1], ["published_at", "2015-01-03 22:51:58.855935"], ["state", "published"], ["created_at", "2015-01-03 22:51:58.859337"], ["updated_at", "2015-01-03 22:51:58.859337"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (42.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 22:51:58.909366"], ["updated_at", "2015-01-03 22:51:58.909366"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (48.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:51:58 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (4.9ms) 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 (11.4ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:51:59 -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"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:51:59.771168"], ["updated_at", "2015-01-03 22:51:59.771168"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:51:59.783903"], ["updated_at", "2015-01-03 22:51:59.783903"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4f3900a5-f79e-4414-bdf5-48b52055ec7b) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] 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] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 44.0ms [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Sent mail to example@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Date: Sat, 03 Jan 2015 17:51:59 -0500 From: from@example.com To: example@example.com Message-ID: <54a8728fcbd55_64142077040235ac@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8728fcb0ac_64142077040234e1"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8728fcb0ac_64142077040234e1 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_54a8728fcb0ac_64142077040234e1 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_54a8728fcb0ac_64142077040234e1-- [ActiveJob] [ActionMailer::DeliveryJob] [4f3900a5-f79e-4414-bdf5-48b52055ec7b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 49.62ms  (64.5ms) commit transaction Proclaim::Comment Load (0.3ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.3ms) 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/_comment.html.erb (8.8ms) Completed 200 OK in 155ms (Views: 0.5ms | ActiveRecord: 68.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (45.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (54.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.3ms) DELETE FROM sqlite_sequence where name = 'users';  (36.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 22:52:00.407385"], ["updated_at", "2015-01-03 22:52:00.407385"]]  (45.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-03 22:52:00.458474"], ["updated_at", "2015-01-03 22:52:00.458474"]]  (46.1ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title57"], ["body", "body44"], ["author_id", 2], ["published_at", "2015-01-03 22:52:00.507487"], ["state", "published"], ["created_at", "2015-01-03 22:52:00.510573"], ["updated_at", "2015-01-03 22:52:00.510573"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (55.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 22:52:00.572150"], ["updated_at", "2015-01-03 22:52:00.572150"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (48.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:00 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.0ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (19.2ms) Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:01 -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"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:01.559672"], ["updated_at", "2015-01-03 22:52:01.559672"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:01.571341"], ["updated_at", "2015-01-03 22:52:01.571341"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1bff64cc-2b6d-436f-b1fb-634f7edfd8a6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (6.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 39.4ms [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Sent mail to example@example.com (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Date: Sat, 03 Jan 2015 17:52:01 -0500 From: from@example.com To: example@example.com Message-ID: <54a8729196ef8_64142077040237d9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87291962df_6414207704023664"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87291962df_6414207704023664 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_54a87291962df_6414207704023664 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_54a87291962df_6414207704023664-- [ActiveJob] [ActionMailer::DeliveryJob] [1bff64cc-2b6d-436f-b1fb-634f7edfd8a6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 45.22ms  (60.0ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.6ms) Completed 200 OK in 151ms (Views: 1.3ms | ActiveRecord: 63.2ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (56.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (49.4ms) DELETE FROM sqlite_sequence where name = 'users';  (45.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (51.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.0ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 22:52:02.203880"], ["updated_at", "2015-01-03 22:52:02.203880"]]  (44.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title58"], ["body", "body45"], ["author_id", 1], ["published_at", "2015-01-03 22:52:02.250449"], ["state", "published"], ["created_at", "2015-01-03 22:52:02.253819"], ["updated_at", "2015-01-03 22:52:02.253819"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (41.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:02 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.2ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.4ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:02 -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"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) 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-03 22:52:02.981312"], ["updated_at", "2015-01-03 22:52:02.981312"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 20ms (Views: 0.2ms | ActiveRecord: 2.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (51.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.0ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.3ms) DELETE FROM sqlite_sequence where name = 'users';  (32.6ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (42.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 22:52:03.359534"], ["updated_at", "2015-01-03 22:52:03.359534"]]  (33.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title59"], ["body", "body46"], ["author_id", 1], ["published_at", "2015-01-03 22:52:03.394624"], ["state", "published"], ["created_at", "2015-01-03 22:52:03.396269"], ["updated_at", "2015-01-03 22:52:03.396269"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:03 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.2ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:04 -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"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) 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-03 22:52:04.108383"], ["updated_at", "2015-01-03 22:52:04.108383"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:04.117873"], ["updated_at", "2015-01-03 22:52:04.117873"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1ea51fa7-f7d5-4188-bd6e-d4c8f486f339) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] 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] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.6ms [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Sent mail to example@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Date: Sat, 03 Jan 2015 17:52:04 -0500 From: from@example.com To: example@example.com Message-ID: <54a8729426cb2_641420770402391e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729425f85_6414207704023841"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729425f85_6414207704023841 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_54a8729425f85_6414207704023841 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_54a8729425f85_6414207704023841-- [ActiveJob] [ActionMailer::DeliveryJob] [1ea51fa7-f7d5-4188-bd6e-d4c8f486f339] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.01ms  (41.2ms) commit transaction Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (6.5ms) Completed 200 OK in 110ms (Views: 0.5ms | ActiveRecord: 43.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (43.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (45.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.7ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.8ms) DELETE FROM sqlite_sequence where name = 'users';  (36.4ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-03 22:52:04.680958"], ["updated_at", "2015-01-03 22:52:04.680958"]]  (40.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "body47"], ["author_id", 1], ["published_at", "2015-01-03 22:52:04.727416"], ["state", "published"], ["created_at", "2015-01-03 22:52:04.732025"], ["updated_at", "2015-01-03 22:52:04.732025"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (34.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:04 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.5ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:05 -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"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (2.3ms) 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-03 22:52:05.498491"], ["updated_at", "2015-01-03 22:52:05.498491"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:05.509266"], ["updated_at", "2015-01-03 22:52:05.509266"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5e63d347-0ab0-4979-9b4e-20aa115631ba) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] 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] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.7ms [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Sent mail to example@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Date: Sat, 03 Jan 2015 17:52:05 -0500 From: from@example.com To: example@example.com Message-ID: <54a8729586cf0_641420770402416d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872958617f_64142077040240c8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872958617f_64142077040240c8 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_54a872958617f_64142077040240c8 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_54a872958617f_64142077040240c8-- [ActiveJob] [ActionMailer::DeliveryJob] [5e63d347-0ab0-4979-9b4e-20aa115631ba] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.3ms  (59.6ms) commit transaction Proclaim::Comment Load (0.3ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.8ms) Completed 200 OK in 140ms (Views: 0.8ms | ActiveRecord: 64.2ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (60.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (47.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'users';  (36.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (44.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.3ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 22:52:06.104292"], ["updated_at", "2015-01-03 22:52:06.104292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title61"], ["body", "body48"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.107439"], ["updated_at", "2015-01-03 22:52:06.107439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.114745"], ["updated_at", "2015-01-03 22:52:06.114745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 22:52:06.122190"], ["updated_at", "2015-01-03 22:52:06.122190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title62"], ["body", "body49"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.125089"], ["updated_at", "2015-01-03 22:52:06.125089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.129197"], ["updated_at", "2015-01-03 22:52:06.129197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 22:52:06.134736"], ["updated_at", "2015-01-03 22:52:06.134736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title63"], ["body", "body50"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.137295"], ["updated_at", "2015-01-03 22:52:06.137295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email5@example.com"], ["created_at", "2015-01-03 22:52:06.151148"], ["updated_at", "2015-01-03 22:52:06.151148"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 78e2f8cc-46f7-4432-8f28-284415e79b8a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.3ms [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Sent mail to email5@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email5@example.com Message-ID: <54a872962d51a_6414b2531824335@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872962cc20_6414b253182428f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872962cc20_6414b253182428f 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_54a872962cc20_6414b253182428f 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_54a872962cc20_6414b253182428f-- [ActiveJob] [ActionMailer::DeliveryJob] [78e2f8cc-46f7-4432-8f28-284415e79b8a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.17ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-03 22:52:06.190181"], ["updated_at", "2015-01-03 22:52:06.190181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title64"], ["body", "body51"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.191876"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.193302"], ["updated_at", "2015-01-03 22:52:06.193302"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 152543e4-5fb8-4b02-8d48-f0541cf04e5d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] 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] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] 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] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.9ms [ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] Sent mail to email5@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email5@example.com Message-ID: <54a87296360af_6414b253182451b@Pandora.mail> Subject: New Post: title64 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729635864_6414b2531824450"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729635864_6414b2531824450 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title64 ******* body51 Written on January 03, 2015 at 10:52 PM UTC by first_name73 last_name73 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_54a8729635864_6414b2531824450 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title64

body51
----==_mimepart_54a8729635864_6414b2531824450-- [ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 25.46ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 22:52:06.227141"], ["updated_at", "2015-01-03 22:52:06.227141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title65"], ["body", "body52"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.228941"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.230239"], ["updated_at", "2015-01-03 22:52:06.230239"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email6@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.234215"], ["updated_at", "2015-01-03 22:52:06.234215"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 62737a0a-de8f-4c88-858d-771f7a54f9bf) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] 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] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.0ms [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Sent mail to email6@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email6@example.com Message-ID: <54a872964138e_6414b25318247db@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729640a8f_6414b25318246ba"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729640a8f_6414b25318246ba 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_54a8729640a8f_6414b25318246ba 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_54a8729640a8f_6414b25318246ba-- [ActiveJob] [ActionMailer::DeliveryJob] [62737a0a-de8f-4c88-858d-771f7a54f9bf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.58ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.271248"], ["updated_at", "2015-01-03 22:52:06.271248"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7f7109ce-41c5-4eee-9989-34f108353a57) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] 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] [7f7109ce-41c5-4eee-9989-34f108353a57] 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] [7f7109ce-41c5-4eee-9989-34f108353a57] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 23.8ms [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Sent mail to email6@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email6@example.com Message-ID: <54a87296497d6_6414b25318249b6@Pandora.mail> Subject: New Comment On "title65" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729648fcb_6414b2531824837"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729648fcb_6414b2531824837 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body25 Written on January 03, 2015 at 10:52 PM UTC by author25 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_54a8729648fcb_6414b2531824837 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body25
----==_mimepart_54a8729648fcb_6414b2531824837-- [ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.32ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-03 22:52:06.307527"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 22:52:06.311624"], ["updated_at", "2015-01-03 22:52:06.311624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title66"], ["body", "body53"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.313181"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.314483"], ["updated_at", "2015-01-03 22:52:06.314483"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email7@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.318461"], ["updated_at", "2015-01-03 22:52:06.318461"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: efb678f6-01be-44a9-9390-279e21ac26a1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] 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] [efb678f6-01be-44a9-9390-279e21ac26a1] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.6ms [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] Sent mail to email7@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email7@example.com Message-ID: <54a8729655a23_6414b2531825114@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872965519c_6414b25318250fd"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872965519c_6414b25318250fd 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_54a872965519c_6414b25318250fd 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_54a872965519c_6414b25318250fd-- [ActiveJob] [ActionMailer::DeliveryJob] [efb678f6-01be-44a9-9390-279e21ac26a1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.11ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email8@example.com"], ["created_at", "2015-01-03 22:52:06.356632"], ["updated_at", "2015-01-03 22:52:06.356632"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 45a1d349-eec3-4f59-8a30-492f3ba84c0c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] 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] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 39.0ms [ActiveJob] [ActionMailer::DeliveryJob] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] Sent mail to email8@example.com (4.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email8@example.com Message-ID: <54a87296621ef_6414b25318253f4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87296614b2_6414b25318252c7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87296614b2_6414b25318252c7 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_54a87296614b2_6414b25318252c7 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_54a87296614b2_6414b25318252c7-- [ActiveJob] [ActionMailer::DeliveryJob] [45a1d349-eec3-4f59-8a30-492f3ba84c0c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 44.22ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-03 22:52:06.406633"], ["updated_at", "2015-01-03 22:52:06.406633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body54"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.409426"], ["updated_at", "2015-01-03 22:52:06.409426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 22:52:06.411198"], ["state", "published"], ["updated_at", "2015-01-03 22:52:06.412496"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5e22be89-19ee-4c51-8c5c-5fdcdf895004) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] 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] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] 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] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] Sent mail to email8@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email8@example.com Message-ID: <54a872966d547_6414b2531825515@Pandora.mail> Subject: New Post: title67 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872966cbd4_6414b253182543b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872966cbd4_6414b253182543b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title67 ******* body54 Written on January 03, 2015 at 10:52 PM UTC by first_name76 last_name76 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_54a872966cbd4_6414b253182543b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title67

body54
----==_mimepart_54a872966cbd4_6414b253182543b-- [ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.72ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email9@example.com"], ["created_at", "2015-01-03 22:52:06.453983"], ["updated_at", "2015-01-03 22:52:06.453983"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b6d883bf-a150-4ee3-a2f6-5bef1236613e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] 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] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.9ms [ActiveJob] [ActionMailer::DeliveryJob] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] Sent mail to email9@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email9@example.com Message-ID: <54a8729677245_6414b25318257e8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87296769b2_6414b25318256d9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87296769b2_6414b25318256d9 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_54a87296769b2_6414b25318256d9 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_54a87296769b2_6414b25318256d9-- [ActiveJob] [ActionMailer::DeliveryJob] [b6d883bf-a150-4ee3-a2f6-5bef1236613e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.6ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 22:52:06.492836"], ["updated_at", "2015-01-03 22:52:06.492836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title68"], ["body", "body55"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.494515"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.495866"], ["updated_at", "2015-01-03 22:52:06.495866"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ab6a4c64-e1c0-431f-899d-38feb29e1aa1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] 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] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 23.0ms [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Sent mail to email9@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email9@example.com Message-ID: <54a872968038f_6414b25318259e8@Pandora.mail> Subject: New Post: title68 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872967fa8d_6414b253182584b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872967fa8d_6414b253182584b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title68 ******* body55 Written on January 03, 2015 at 10:52 PM UTC by first_name77 last_name77 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_54a872967fa8d_6414b253182584b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title68

body55
----==_mimepart_54a872967fa8d_6414b253182584b-- [ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.88ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 22:52:06.531244"], ["updated_at", "2015-01-03 22:52:06.531244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body56"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.533071"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.534455"], ["updated_at", "2015-01-03 22:52:06.534455"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email10@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.538563"], ["updated_at", "2015-01-03 22:52:06.538563"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8afcf961-719b-4601-8cb8-21ede0d23791) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] 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] [8afcf961-719b-4601-8cb8-21ede0d23791] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] Sent mail to email10@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email10@example.com Message-ID: <54a872968b8df_6414b25318261f5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872968b019_6414b25318260af"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872968b019_6414b25318260af 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_54a872968b019_6414b25318260af 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_54a872968b019_6414b25318260af-- [ActiveJob] [ActionMailer::DeliveryJob] [8afcf961-719b-4601-8cb8-21ede0d23791] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.82ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.575922"], ["updated_at", "2015-01-03 22:52:06.575922"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1195716b-f61a-4f56-95dc-86626c1c8ced) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] 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] [1195716b-f61a-4f56-95dc-86626c1c8ced] 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] [1195716b-f61a-4f56-95dc-86626c1c8ced] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 24.4ms [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Sent mail to email10@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Date: Sat, 03 Jan 2015 17:52:06 -0500 From: from@example.com To: email10@example.com Message-ID: <54a8729694119_6414b2531826389@Pandora.mail> Subject: New Comment On "title69" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729693893_6414b253182627f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729693893_6414b253182627f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body26 Written on January 03, 2015 at 10:52 PM UTC by author26 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_54a8729693893_6414b253182627f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body26
----==_mimepart_54a8729693893_6414b253182627f-- [ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.18ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 22:52:06.614677"], ["updated_at", "2015-01-03 22:52:06.614677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 22:52:06.617789"], ["updated_at", "2015-01-03 22:52:06.617789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title70"], ["body", "body57"], ["author_id", 2], ["published_at", "2015-01-03 22:52:06.618936"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.620343"], ["updated_at", "2015-01-03 22:52:06.620343"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-03 22:52:06.624383"], ["updated_at", "2015-01-03 22:52:06.624383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title71"], ["body", "body58"], ["author_id", 3], ["created_at", "2015-01-03 22:52:06.626528"], ["updated_at", "2015-01-03 22:52:06.626528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 22:52:06.629391"], ["updated_at", "2015-01-03 22:52:06.629391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 22:52:06.632223"], ["updated_at", "2015-01-03 22:52:06.632223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title72"], ["body", "body59"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.634356"], ["updated_at", "2015-01-03 22:52:06.634356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author29"], ["body", "body29"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.636554"], ["updated_at", "2015-01-03 22:52:06.636554"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 22:52:06.643336"], ["updated_at", "2015-01-03 22:52:06.643336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title73"], ["body", "body60"], ["author_id", 3], ["created_at", "2015-01-03 22:52:06.645532"], ["updated_at", "2015-01-03 22:52:06.645532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body30"], ["post_id", 2], ["created_at", "2015-01-03 22:52:06.647436"], ["updated_at", "2015-01-03 22:52:06.647436"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 22:52:06.654238"], ["updated_at", "2015-01-03 22:52:06.654238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 22:52:06.657001"], ["updated_at", "2015-01-03 22:52:06.657001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title74"], ["body", "body61"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.659213"], ["updated_at", "2015-01-03 22:52:06.659213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author31"], ["body", "body31"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.661621"], ["updated_at", "2015-01-03 22:52:06.661621"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 22:52:06.667667"], ["updated_at", "2015-01-03 22:52:06.667667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 22:52:06.671159"], ["updated_at", "2015-01-03 22:52:06.671159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title75"], ["body", "body62"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.674468"], ["updated_at", "2015-01-03 22:52:06.674468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.677261"], ["updated_at", "2015-01-03 22:52:06.677261"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Proclaim::InstallGeneratorTest: test_generator_runs_without_errors ------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 22:52:06.699236"], ["updated_at", "2015-01-03 22:52:06.699236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title76"], ["body", "body63"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.701887"], ["updated_at", "2015-01-03 22:52:06.701887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 22:52:06.722865"], ["updated_at", "2015-01-03 22:52:06.722865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 22:52:06.726204"], ["updated_at", "2015-01-03 22:52:06.726204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title77"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title77"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.746572"], ["updated_at", "2015-01-03 22:52:06.746572"]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.748628"], ["updated_at", "2015-01-03 22:52:06.748628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:52:06.753446"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 25ms (ActiveRecord: 1.0ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 22:52:06.764126"], ["updated_at", "2015-01-03 22:52:06.764126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 22:52:06.768163"], ["updated_at", "2015-01-03 22:52:06.768163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title78"], ["body", "body65"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.770631"], ["updated_at", "2015-01-03 22:52:06.770631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 22:52:06.788782"], ["updated_at", "2015-01-03 22:52:06.788782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 22:52:06.792035"], ["updated_at", "2015-01-03 22:52:06.792035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title79"], ["body", "body66"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.794367"], ["updated_at", "2015-01-03 22:52:06.794367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title79"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.807599"], ["updated_at", "2015-01-03 22:52:06.807599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:52:06.812588"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 14ms (ActiveRecord: 0.7ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 22:52:06.823527"], ["updated_at", "2015-01-03 22:52:06.823527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title80"], ["body", "body67"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.826443"], ["updated_at", "2015-01-03 22:52:06.826443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 22:52:06.829665"], ["updated_at", "2015-01-03 22:52:06.829665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title81"], ["body", "body68"], ["author_id", 2], ["published_at", "2015-01-03 22:52:06.830999"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.832459"], ["updated_at", "2015-01-03 22:52:06.832459"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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 (5.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 22:52:06.847687"], ["updated_at", "2015-01-03 22:52:06.847687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 22:52:06.851242"], ["updated_at", "2015-01-03 22:52:06.851242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title82"], ["body", "body69"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.853443"], ["updated_at", "2015-01-03 22:52:06.853443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 22:52:06.856498"], ["updated_at", "2015-01-03 22:52:06.856498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title83"], ["body", "body70"], ["author_id", 3], ["published_at", "2015-01-03 22:52:06.858138"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.859750"], ["updated_at", "2015-01-03 22:52:06.859750"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (16.2ms) Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 22:52:06.887439"], ["updated_at", "2015-01-03 22:52:06.887439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title84"], ["body", "body71"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.890985"], ["updated_at", "2015-01-03 22:52:06.890985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 22:52:06.903603"], ["updated_at", "2015-01-03 22:52:06.903603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (13.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (14.6ms) Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 22:52:06.930358"], ["updated_at", "2015-01-03 22:52:06.930358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 22:52:06.933657"], ["updated_at", "2015-01-03 22:52:06.933657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title85"], ["body", "body72"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.935748"], ["updated_at", "2015-01-03 22:52:06.935748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body72", "title"=>"title85"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 22:52:06.941985"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-03 22:52:06.944356"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 22:52:06.954811"], ["updated_at", "2015-01-03 22:52:06.954811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 22:52:06.958480"], ["updated_at", "2015-01-03 22:52:06.958480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body73", "title"=>"title86"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title86"], ["body", "body73"], ["author_id", 1], ["published_at", "2015-01-03 22:52:06.968506"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.970734"], ["updated_at", "2015-01-03 22:52:06.970734"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 22:52:06.981614"], ["updated_at", "2015-01-03 22:52:06.981614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 22:52:06.984900"], ["updated_at", "2015-01-03 22:52:06.984900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title87"], ["body", "body74"], ["author_id", 2], ["published_at", "2015-01-03 22:52:06.986119"], ["state", "published"], ["created_at", "2015-01-03 22:52:06.987378"], ["updated_at", "2015-01-03 22:52:06.987378"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 22:52:07.003537"], ["updated_at", "2015-01-03 22:52:07.003537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title88"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.005840"], ["updated_at", "2015-01-03 22:52:07.005840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) 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 (4.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.3ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 22:52:07.019756"], ["updated_at", "2015-01-03 22:52:07.019756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 22:52:07.022917"], ["updated_at", "2015-01-03 22:52:07.022917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.025035"], ["updated_at", "2015-01-03 22:52:07.025035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (11.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (12.4ms) Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-03 22:52:07.048981"], ["updated_at", "2015-01-03 22:52:07.048981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 22:52:07.052040"], ["updated_at", "2015-01-03 22:52:07.052040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body77", "title"=>"title90"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title90"], ["body", "body77"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.059910"], ["updated_at", "2015-01-03 22:52:07.059910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 22:52:07.070555"], ["updated_at", "2015-01-03 22:52:07.070555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title91"], ["body", "body78"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.073460"], ["updated_at", "2015-01-03 22:52:07.073460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body78", "title"=>"title91"}, "id"=>"1"} Proclaim::Post Load (0.1ms) 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 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-03 22:52:07.086395"], ["updated_at", "2015-01-03 22:52:07.086395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body79", "title"=>"title92"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 22:52:07.098518"], ["updated_at", "2015-01-03 22:52:07.098518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 22:52:07.102154"], ["updated_at", "2015-01-03 22:52:07.102154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title93"], ["body", "body80"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.104731"], ["updated_at", "2015-01-03 22:52:07.104731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body80", "title"=>"title93"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 22:52:07.121723"], ["updated_at", "2015-01-03 22:52:07.121723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title94"], ["body", "body81"], ["author_id", 1], ["published_at", "2015-01-03 22:52:07.123334"], ["state", "published"], ["created_at", "2015-01-03 22:52:07.126688"], ["updated_at", "2015-01-03 22:52:07.126688"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.2ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-03 22:52:07.147421"], ["updated_at", "2015-01-03 22:52:07.147421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title95"], ["body", "body82"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.149831"], ["updated_at", "2015-01-03 22:52:07.149831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 22:52:07.160467"], ["updated_at", "2015-01-03 22:52:07.160467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-03 22:52:07.164229"], ["updated_at", "2015-01-03 22:52:07.164229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title96"], ["body", "body83"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.166771"], ["updated_at", "2015-01-03 22:52:07.166771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325527-25620-8374/test.jpg"} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 22:52:07.178960"], ["updated_at", "2015-01-03 22:52:07.178960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body84"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.189759"], ["updated_at", "2015-01-03 22:52:07.189759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 22:52:07.194232"], ["updated_at", "2015-01-03 22:52:07.194232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 22:52:07.198135"], ["updated_at", "2015-01-03 22:52:07.198135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title98"], ["body", "body85"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.200573"], ["updated_at", "2015-01-03 22:52:07.200573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:07.210039"], ["updated_at", "2015-01-03 22:52:07.210039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 22:52:07.215889"], ["updated_at", "2015-01-03 22:52:07.215889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body86"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.221478"], ["updated_at", "2015-01-03 22:52:07.221478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.7ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 22:52:07.230230"], ["updated_at", "2015-01-03 22:52:07.230230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", "body87"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.233071"], ["updated_at", "2015-01-03 22:52:07.233071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325527-25620-8808/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 22:52:07.243150"], ["updated_at", "2015-01-03 22:52:07.243150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body88"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.245545"], ["updated_at", "2015-01-03 22:52:07.245545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 22:52:07.250673"], ["updated_at", "2015-01-03 22:52:07.250673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title102"], ["body", "body89"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.253624"], ["updated_at", "2015-01-03 22:52:07.253624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-03 22:52:07.263376"], ["updated_at", "2015-01-03 22:52:07.263376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title103"], ["body", "body90"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.266035"], ["updated_at", "2015-01-03 22:52:07.266035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-03 22:52:07.270009"], ["updated_at", "2015-01-03 22:52:07.270009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 22:52:07.273762"], ["updated_at", "2015-01-03 22:52:07.273762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title104"], ["body", "body91"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.275904"], ["updated_at", "2015-01-03 22:52:07.275904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 22:52:07.286616"], ["updated_at", "2015-01-03 22:52:07.286616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title105"], ["body", "body92"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.289257"], ["updated_at", "2015-01-03 22:52:07.289257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 22:52:07.294970"], ["updated_at", "2015-01-03 22:52:07.294970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title106"], ["body", "body93"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.297622"], ["updated_at", "2015-01-03 22:52:07.297622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:07.302567"], ["updated_at", "2015-01-03 22:52:07.302567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 22:52:07.313034"], ["updated_at", "2015-01-03 22:52:07.313034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body94"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.315656"], ["updated_at", "2015-01-03 22:52:07.315656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 22:52:07.319998"], ["updated_at", "2015-01-03 22:52:07.319998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 22:52:07.323286"], ["updated_at", "2015-01-03 22:52:07.323286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title108"], ["body", "body95"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.325397"], ["updated_at", "2015-01-03 22:52:07.325397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:07.329249"], ["updated_at", "2015-01-03 22:52:07.329249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 22:52:07.339169"], ["updated_at", "2015-01-03 22:52:07.339169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title109"], ["body", "body96"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.341436"], ["updated_at", "2015-01-03 22:52:07.341436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 22:52:07.352224"], ["updated_at", "2015-01-03 22:52:07.352224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title110"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.354836"], ["updated_at", "2015-01-03 22:52:07.354836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-03 22:52:07.360122"], ["updated_at", "2015-01-03 22:52:07.360122"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 33c067c1-40ff-4b16-bd68-b8904fb1e8c5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] 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] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.6ms [ActiveJob] [ActionMailer::DeliveryJob] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] Sent mail to foo@bar.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8729760b28_6414b253182653a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729760230_6414b25318264f1"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729760230_6414b25318264f1 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_54a8729760230_6414b25318264f1 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_54a8729760230_6414b25318264f1-- [ActiveJob] [ActionMailer::DeliveryJob] [33c067c1-40ff-4b16-bd68-b8904fb1e8c5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.63ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 22:52:07.402967"], ["updated_at", "2015-01-03 22:52:07.402967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title111"], ["body", "body98"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.405463"], ["updated_at", "2015-01-03 22:52:07.405463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:07.408473"], ["updated_at", "2015-01-03 22:52:07.408473"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] 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] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.4ms [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Sent mail to foo@bar.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a872976be1c_6414b25318267da@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872976b4ef_6414b2531826653"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872976b4ef_6414b2531826653 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_54a872976b4ef_6414b2531826653 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_54a872976b4ef_6414b2531826653-- [ActiveJob] [ActionMailer::DeliveryJob] [5a7ae5e3-cc46-41ff-b763-c3bfeeb0dca9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.27ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 22:52:07.451810"], ["updated_at", "2015-01-03 22:52:07.451810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title112"], ["body", "body99"], ["author_id", 1], ["published_at", "2015-01-03 22:52:07.453370"], ["state", "published"], ["created_at", "2015-01-03 22:52:07.454680"], ["updated_at", "2015-01-03 22:52:07.454680"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email12@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:07.458593"], ["updated_at", "2015-01-03 22:52:07.458593"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9072eadb-942a-44d6-b6f8-a95ba3fd6c47) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] 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] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.3ms [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Sent mail to email12@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email12@example.com Message-ID: <54a87297788ca_6414b253182692f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729777fdc_6414b25318268c4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729777fdc_6414b25318268c4 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_54a8729777fdc_6414b25318268c4 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_54a8729777fdc_6414b25318268c4-- [ActiveJob] [ActionMailer::DeliveryJob] [9072eadb-942a-44d6-b6f8-a95ba3fd6c47] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.96ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email13@example.com"], ["created_at", "2015-01-03 22:52:07.499138"], ["updated_at", "2015-01-03 22:52:07.499138"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c5a0309b-c1ba-4bcf-a929-9656b2bad729) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] 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] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.9ms [ActiveJob] [ActionMailer::DeliveryJob] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] Sent mail to email13@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email13@example.com Message-ID: <54a8729781924_6414b253182715d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729781014_6414b25318270f1"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729781014_6414b25318270f1 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_54a8729781014_6414b25318270f1 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_54a8729781014_6414b25318270f1-- [ActiveJob] [ActionMailer::DeliveryJob] [c5a0309b-c1ba-4bcf-a929-9656b2bad729] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.74ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email14@example.com"], ["created_at", "2015-01-03 22:52:07.540129"], ["updated_at", "2015-01-03 22:52:07.540129"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 035bc6a1-e82d-48fd-a3e9-a57430178469) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.9ms [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Sent mail to email14@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email14@example.com Message-ID: <54a872978bf8a_6414b2531827384@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872978b6f0_6414b2531827259"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872978b6f0_6414b2531827259 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_54a872978b6f0_6414b2531827259 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_54a872978b6f0_6414b2531827259-- [ActiveJob] [ActionMailer::DeliveryJob] [035bc6a1-e82d-48fd-a3e9-a57430178469] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-03 22:52:07.577681"], ["updated_at", "2015-01-03 22:52:07.577681"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ac944bbf-bb9a-47cb-825d-9a15c30a801e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] 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] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.9ms [ActiveJob] [ActionMailer::DeliveryJob] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] Sent mail to email15@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email15@example.com Message-ID: <54a87297957f3_6414b25318275b3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8729794e22_6414b25318274ae"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8729794e22_6414b25318274ae 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_54a8729794e22_6414b25318274ae 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_54a8729794e22_6414b25318274ae-- [ActiveJob] [ActionMailer::DeliveryJob] [ac944bbf-bb9a-47cb-825d-9a15c30a801e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.19ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-03 22:52:07.626015"], ["updated_at", "2015-01-03 22:52:07.626015"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3d9db270-e7db-490c-9dad-4481a6ff7ba2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] 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] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.7ms [ActiveJob] [ActionMailer::DeliveryJob] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] Sent mail to email16@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email16@example.com Message-ID: <54a87297a280a_6414b25318277e6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297a1daa_6414b253182763"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297a1daa_6414b253182763 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_54a87297a1daa_6414b253182763 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_54a87297a1daa_6414b253182763-- [ActiveJob] [ActionMailer::DeliveryJob] [3d9db270-e7db-490c-9dad-4481a6ff7ba2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.08ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-03 22:52:07.670588"], ["updated_at", "2015-01-03 22:52:07.670588"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ff13a5a1-2434-4be9-b66e-cee4968759bc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [ff13a5a1-2434-4be9-b66e-cee4968759bc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [ff13a5a1-2434-4be9-b66e-cee4968759bc] 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] [ff13a5a1-2434-4be9-b66e-cee4968759bc] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.0ms [ActiveJob] [ActionMailer::DeliveryJob] [ff13a5a1-2434-4be9-b66e-cee4968759bc] Sent mail to email17@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [ff13a5a1-2434-4be9-b66e-cee4968759bc] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email17@example.com Message-ID: <54a87297ad815_6414b253182797a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297acee3_6414b25318278ab"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297acee3_6414b25318278ab 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_54a87297acee3_6414b25318278ab 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_54a87297acee3_6414b25318278ab-- [ActiveJob] [ActionMailer::DeliveryJob] [ff13a5a1-2434-4be9-b66e-cee4968759bc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email18@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email18@example.com"], ["created_at", "2015-01-03 22:52:07.744371"], ["updated_at", "2015-01-03 22:52:07.744371"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e8c3edea-ea06-4ff2-9376-d6abcd2d76f3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.4ms [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Sent mail to email18@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email18@example.com Message-ID: <54a87297be449_6414b2531828176@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297bdb37_6414b25318280e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297bdb37_6414b25318280e 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_54a87297bdb37_6414b25318280e 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_54a87297bdb37_6414b25318280e-- [ActiveJob] [ActionMailer::DeliveryJob] [e8c3edea-ea06-4ff2-9376-d6abcd2d76f3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.31ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 43ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-03 22:52:07.791928"], ["updated_at", "2015-01-03 22:52:07.791928"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f06f23bd-83ca-48fa-bb4b-af5b55d7cec6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.7ms [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Sent mail to email19@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email19@example.com Message-ID: <54a87297c9ed3_6414b2531828331@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297c968c_6414b2531828237"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297c968c_6414b2531828237 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_54a87297c968c_6414b2531828237 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_54a87297c968c_6414b2531828237-- [ActiveJob] [ActionMailer::DeliveryJob] [f06f23bd-83ca-48fa-bb4b-af5b55d7cec6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.28ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email20@example.com"], ["created_at", "2015-01-03 22:52:07.831359"], ["updated_at", "2015-01-03 22:52:07.831359"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6380f6c1-a6a8-4847-9d5c-eef706dce61f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] 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] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.8ms [ActiveJob] [ActionMailer::DeliveryJob] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] Sent mail to email20@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email20@example.com Message-ID: <54a87297d44e3_6414b2531828591@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297d3c43_6414b253182846b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297d3c43_6414b253182846b 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_54a87297d3c43_6414b253182846b 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_54a87297d3c43_6414b253182846b-- [ActiveJob] [ActionMailer::DeliveryJob] [6380f6c1-a6a8-4847-9d5c-eef706dce61f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.38ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (3.1ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.3ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-03 22:52:07.893831"], ["updated_at", "2015-01-03 22:52:07.893831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email21@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email21@example.com"], ["created_at", "2015-01-03 22:52:07.902330"], ["updated_at", "2015-01-03 22:52:07.902330"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b511e0df-0d1d-499b-a570-e85d247cbe4e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b511e0df-0d1d-499b-a570-e85d247cbe4e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b511e0df-0d1d-499b-a570-e85d247cbe4e] 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] [b511e0df-0d1d-499b-a570-e85d247cbe4e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.0ms [ActiveJob] [ActionMailer::DeliveryJob] [b511e0df-0d1d-499b-a570-e85d247cbe4e] Sent mail to email21@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b511e0df-0d1d-499b-a570-e85d247cbe4e] Date: Sat, 03 Jan 2015 17:52:07 -0500 From: from@example.com To: email21@example.com Message-ID: <54a87297e5308_6414b253182874e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87297e4a3b_6414b25318286c7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87297e4a3b_6414b25318286c7 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_54a87297e4a3b_6414b25318286c7 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_54a87297e4a3b_6414b25318286c7-- [ActiveJob] [ActionMailer::DeliveryJob] [b511e0df-0d1d-499b-a570-e85d247cbe4e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.93ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 44ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email22@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 22:52:07.966244"], ["updated_at", "2015-01-03 22:52:07.966244"]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-03 22:52:07.995967"], ["updated_at", "2015-01-03 22:52:07.995967"]]  (46.5ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body100"], ["author_id", 2], ["created_at", "2015-01-03 22:52:08.045632"], ["updated_at", "2015-01-03 22:52:08.045632"]]  (35.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:08.087324"], ["updated_at", "2015-01-03 22:52:08.087324"]]  (51.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-03 22:52:08.144734"], ["id", 1]]  (35.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:08 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title113", "body"=>"

test

\r\n\t\t


", "images_attributes"=>{"1"=>{"id"=>"1", "_destroy"=>"true"}}}, "commit"=>"Update Post", "id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1 [["post_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

\r\n\t\t


"], ["updated_at", "2015-01-03 22:52:09.000675"], ["id", 1]] SQL (0.2ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (46.0ms) commit transaction Redirected to http://127.0.0.1:55291/proclaim/posts/1 Completed 302 Found in 59ms (ActiveRecord: 47.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:09 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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 (10.3ms) Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.8ms)  (27.8ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (23.1ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (26.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.3ms) DELETE FROM sqlite_sequence where name = 'users';  (15.8ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (15.8ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (21.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-03 22:52:09.501367"], ["updated_at", "2015-01-03 22:52:09.501367"]]  (21.1ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:52:09 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:52:10 -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 (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts"  (37.9ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.1ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (25.4ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.4ms) DELETE FROM sqlite_sequence where name = 'users';  (42.3ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.7ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 22:52:10.500527"], ["updated_at", "2015-01-03 22:52:10.500527"]]  (35.9ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-03 22:52:10.550369"], ["updated_at", "2015-01-03 22:52:10.550369"]]  (28.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title114"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-03 22:52:10.587454"], ["updated_at", "2015-01-03 22:52:10.587454"]]  (43.9ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:52:10 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:52:10 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325530-25620-2845/test.jpg"} Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (34.7ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (26.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (22.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'users';  (30.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-03 22:52:11.431286"], ["updated_at", "2015-01-03 22:52:11.431286"]]  (31.2ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:52:11 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:52:11 -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.2ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (37.7ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (39.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'users';  (36.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-03 22:52:12.293756"], ["updated_at", "2015-01-03 22:52:12.293756"]]  (32.5ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:52:12 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:52:12 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post TitleParagraph 1
Paragraph 2
", "body"=>"


"}, "commit"=>"Create Post"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (18.6ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (18.0ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.7ms) DELETE FROM sqlite_sequence where name = 'users';  (38.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.7ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 22:52:15.448526"], ["updated_at", "2015-01-03 22:52:15.448526"]]  (39.3ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-03 22:52:15.494908"], ["updated_at", "2015-01-03 22:52:15.494908"]]  (27.5ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title115"], ["body", "body101"], ["author_id", 2], ["created_at", "2015-01-03 22:52:15.528783"], ["updated_at", "2015-01-03 22:52:15.528783"]]  (29.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:15.570429"], ["updated_at", "2015-01-03 22:52:15.570429"]]  (42.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 22:52:15.619120"], ["id", 1]]  (34.5ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:52:15 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.7ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:52:15 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:16 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.4ms)  (38.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.5ms) DELETE FROM sqlite_sequence where name = 'users';  (44.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.1ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 22:52:16.548349"], ["updated_at", "2015-01-03 22:52:16.548349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email23@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email23@example.com"], ["created_at", "2015-01-03 22:52:16.551608"], ["updated_at", "2015-01-03 22:52:16.551608"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1244af08-90a8-4f53-947f-17c6d79f5292) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 32.0ms [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Sent mail to email23@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email23@example.com Message-ID: <54a872a09002e_6414b253182893@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a08f696_6414b253182884"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a08f696_6414b253182884 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_54a872a08f696_6414b253182884 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_54a872a08f696_6414b253182884-- [ActiveJob] [ActionMailer::DeliveryJob] [1244af08-90a8-4f53-947f-17c6d79f5292] Performed ActionMailer::DeliveryJob from Inline(mailers) in 36.19ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 22:52:16.594670"], ["updated_at", "2015-01-03 22:52:16.594670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email24@example.com"], ["created_at", "2015-01-03 22:52:16.597790"], ["updated_at", "2015-01-03 22:52:16.597790"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b2c73358-6a32-4e25-b7c8-60325e987b95) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 44.7ms [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Sent mail to email24@example.com (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email24@example.com Message-ID: <54a872a09e477_6414b253182919@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a09d907_6414b253182907c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a09d907_6414b253182907c 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_54a872a09d907_6414b253182907c 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_54a872a09d907_6414b253182907c-- [ActiveJob] [ActionMailer::DeliveryJob] [b2c73358-6a32-4e25-b7c8-60325e987b95] Performed ActionMailer::DeliveryJob from Inline(mailers) in 49.3ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 22:52:16.653362"], ["updated_at", "2015-01-03 22:52:16.653362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 22:52:16.656806"], ["updated_at", "2015-01-03 22:52:16.656806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title116"], ["body", "body102"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.659594"], ["updated_at", "2015-01-03 22:52:16.659594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 22:52:16.663418"], ["updated_at", "2015-01-03 22:52:16.663418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 3], ["published_at", "2015-01-03 22:52:16.665073"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.666564"], ["updated_at", "2015-01-03 22:52:16.666564"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 22:52:16.670888"], ["updated_at", "2015-01-03 22:52:16.670888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 4], ["created_at", "2015-01-03 22:52:16.673319"], ["updated_at", "2015-01-03 22:52:16.673319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 22:52:16.678041"], ["updated_at", "2015-01-03 22:52:16.678041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-03 22:52:16.679575"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.681281"], ["updated_at", "2015-01-03 22:52:16.681281"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 22:52:16.685628"], ["updated_at", "2015-01-03 22:52:16.685628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email31@example.com"], ["created_at", "2015-01-03 22:52:16.688685"], ["updated_at", "2015-01-03 22:52:16.688685"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 26f88439-9de3-4db2-ab52-8dff1e1a8cb0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.3ms [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Sent mail to email31@example.com (5.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email31@example.com Message-ID: <54a872a0b246a_6414b2531829324@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a0b1838_6414b25318292df"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a0b1838_6414b25318292df 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_54a872a0b1838_6414b25318292df 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_54a872a0b1838_6414b25318292df-- [ActiveJob] [ActionMailer::DeliveryJob] [26f88439-9de3-4db2-ab52-8dff1e1a8cb0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.73ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email32@example.com"], ["created_at", "2015-01-03 22:52:16.736557"], ["updated_at", "2015-01-03 22:52:16.736557"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b8c75b68-68a0-4437-a344-922d9605abe6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.0ms [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Sent mail to email32@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email32@example.com Message-ID: <54a872a0bd603_6414b25318295b8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a0bcc3a_6414b25318294c9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a0bcc3a_6414b25318294c9 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_54a872a0bcc3a_6414b25318294c9 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_54a872a0bcc3a_6414b25318294c9-- [ActiveJob] [ActionMailer::DeliveryJob] [b8c75b68-68a0-4437-a344-922d9605abe6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.34ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-03 22:52:16.781783"], ["updated_at", "2015-01-03 22:52:16.781783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-03 22:52:16.784930"], ["updated_at", "2015-01-03 22:52:16.784930"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 93e326e5-276d-41f7-97f7-3150b83bdfb9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.2ms [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Sent mail to email33@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email33@example.com Message-ID: <54a872a0c9067_6414b2531829784@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a0c8759_6414b253182967e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a0c8759_6414b253182967e 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_54a872a0c8759_6414b253182967e 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_54a872a0c8759_6414b253182967e-- [ActiveJob] [ActionMailer::DeliveryJob] [93e326e5-276d-41f7-97f7-3150b83bdfb9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.62ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-03 22:52:16.829861"], ["updated_at", "2015-01-03 22:52:16.829861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 22:52:16.832936"], ["updated_at", "2015-01-03 22:52:16.832936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.835346"], ["updated_at", "2015-01-03 22:52:16.835346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 22:52:16.838389"], ["updated_at", "2015-01-03 22:52:16.838389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 3], ["published_at", "2015-01-03 22:52:16.839998"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.842093"], ["updated_at", "2015-01-03 22:52:16.842093"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-03 22:52:16.847867"], ["updated_at", "2015-01-03 22:52:16.847867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 22:52:16.850504"], ["updated_at", "2015-01-03 22:52:16.850504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.852790"], ["updated_at", "2015-01-03 22:52:16.852790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 22:52:16.855725"], ["updated_at", "2015-01-03 22:52:16.855725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 3], ["published_at", "2015-01-03 22:52:16.857031"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.858804"], ["updated_at", "2015-01-03 22:52:16.858804"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 22:52:16.862511"], ["updated_at", "2015-01-03 22:52:16.862511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 22:52:16.865317"], ["updated_at", "2015-01-03 22:52:16.865317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.867766"], ["updated_at", "2015-01-03 22:52:16.867766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 22:52:16.871227"], ["updated_at", "2015-01-03 22:52:16.871227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 3], ["published_at", "2015-01-03 22:52:16.873396"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.875221"], ["updated_at", "2015-01-03 22:52:16.875221"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 22:52:16.879720"], ["updated_at", "2015-01-03 22:52:16.879720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 22:52:16.882622"], ["updated_at", "2015-01-03 22:52:16.882622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.884953"], ["updated_at", "2015-01-03 22:52:16.884953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 22:52:16.887839"], ["updated_at", "2015-01-03 22:52:16.887839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 3], ["published_at", "2015-01-03 22:52:16.889170"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.890570"], ["updated_at", "2015-01-03 22:52:16.890570"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-03 22:52:16.894348"], ["updated_at", "2015-01-03 22:52:16.894348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 22:52:16.896979"], ["updated_at", "2015-01-03 22:52:16.896979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.899452"], ["updated_at", "2015-01-03 22:52:16.899452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-03 22:52:16.907075"], ["updated_at", "2015-01-03 22:52:16.907075"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 35fe6034-a202-4e3a-90fb-418104791dcb) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.4ms [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Sent mail to email34@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Date: Sat, 03 Jan 2015 17:52:16 -0500 From: from@example.com To: email34@example.com Message-ID: <54a872a0e71ae_6414b2531829997@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a0e67d5_6414b25318298d4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a0e67d5_6414b25318298d4 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_54a872a0e67d5_6414b25318298d4 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_54a872a0e67d5_6414b25318298d4-- [ActiveJob] [ActionMailer::DeliveryJob] [35fe6034-a202-4e3a-90fb-418104791dcb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.86ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:16 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.4ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:16 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) 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 17:52:16 -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.4ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-03 22:52:16.984115"], ["updated_at", "2015-01-03 22:52:16.984115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 1], ["published_at", "2015-01-03 22:52:16.986011"], ["state", "published"], ["created_at", "2015-01-03 22:52:16.987521"], ["updated_at", "2015-01-03 22:52:16.987521"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email35@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:52:16.991577"], ["updated_at", "2015-01-03 22:52:16.991577"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c97a2dd7-e6e7-41c3-ad47-9974ef5585b0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] 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] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.3ms [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Sent mail to email35@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Date: Sat, 03 Jan 2015 17:52:17 -0500 From: from@example.com To: email35@example.com Message-ID: <54a872a17e73_6414b2531830185@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872a17482_6414b2531830059"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872a17482_6414b2531830059 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_54a872a17482_6414b2531830059 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_54a872a17482_6414b2531830059-- [ActiveJob] [ActionMailer::DeliveryJob] [c97a2dd7-e6e7-41c3-ad47-9974ef5585b0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 39.55ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:17 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.4ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:17 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.1ms) 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 17:52:17 -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.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-03 22:52:17.063829"], ["updated_at", "2015-01-03 22:52:17.063829"]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 22:52:17.090520"], ["updated_at", "2015-01-03 22:52:17.090520"]]  (19.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 2], ["published_at", "2015-01-03 22:52:17.112264"], ["state", "published"], ["created_at", "2015-01-03 22:52:17.113917"], ["updated_at", "2015-01-03 22:52:17.113917"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body33"], ["post_id", 1], ["created_at", "2015-01-03 22:52:17.144218"], ["updated_at", "2015-01-03 22:52:17.144218"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (29.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author34"], ["body", "body34"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:17.181587"], ["updated_at", "2015-01-03 22:52:17.181587"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (34.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:17 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.2ms) 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 (12.1ms) Proclaim::Comment Exists (0.1ms) 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 (3.6ms) 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/_comment.html.erb (11.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (34.4ms) Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 0.9ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 17:52:18 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:52:18.246630"], ["id", 1]]  (93.2ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (3.1ms) 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/_comment.html.erb (19.7ms) Proclaim::Comment Exists (0.1ms) 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/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.7ms) Completed 200 OK in 147ms (Views: 2.2ms | ActiveRecord: 95.0ms)  (64.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (56.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (48.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (47.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.1ms) DELETE FROM sqlite_sequence where name = 'users';  (50.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.2ms) DELETE FROM "proclaim_images";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 22:52:19.189529"], ["updated_at", "2015-01-03 22:52:19.189529"]]  (41.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 22:52:19.241312"], ["updated_at", "2015-01-03 22:52:19.241312"]]  (37.9ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 2], ["published_at", "2015-01-03 22:52:19.281910"], ["state", "published"], ["created_at", "2015-01-03 22:52:19.286050"], ["updated_at", "2015-01-03 22:52:19.286050"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (58.4ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 22:52:19.350360"], ["updated_at", "2015-01-03 22:52:19.350360"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (44.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:19 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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 (7.2ms) 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 (13.2ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 17:52:20 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (1.3ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.6ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (61.2ms) commit transaction Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 63.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (65.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (62.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (60.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (49.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (49.9ms) DELETE FROM sqlite_sequence where name = 'users';  (53.0ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (67.2ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 22:52:21.360743"], ["updated_at", "2015-01-03 22:52:21.360743"]]  (55.1ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-03 22:52:21.422147"], ["updated_at", "2015-01-03 22:52:21.422147"]]  (51.4ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 2], ["published_at", "2015-01-03 22:52:21.477391"], ["state", "published"], ["created_at", "2015-01-03 22:52:21.482802"], ["updated_at", "2015-01-03 22:52:21.482802"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (50.0ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-03 22:52:21.540517"], ["updated_at", "2015-01-03 22:52:21.540517"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (46.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:21 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.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/posts/show.html.erb within layouts/application (19.8ms) Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.5ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 17:52:22 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (1.4ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:52:22.201641"], ["id", 1]]  (70.8ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.5ms) 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 (9.5ms) Completed 200 OK in 96ms (Views: 0.7ms | ActiveRecord: 72.8ms)  (53.8ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.2ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.0ms) DELETE FROM sqlite_sequence where name = 'users';  (47.5ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 22:52:22.828080"], ["updated_at", "2015-01-03 22:52:22.828080"]]  (36.9ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 1], ["published_at", "2015-01-03 22:52:22.867857"], ["state", "published"], ["created_at", "2015-01-03 22:52:22.870790"], ["updated_at", "2015-01-03 22:52:22.870790"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (43.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body37"], ["post_id", 1], ["created_at", "2015-01-03 22:52:22.922756"], ["updated_at", "2015-01-03 22:52:22.922756"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:23 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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 (4.9ms) 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 (10.9ms) Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 0.6ms)  (40.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (40.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (41.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.9ms) DELETE FROM sqlite_sequence where name = 'users';  (47.2ms) DELETE FROM "proclaim_subscriptions";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.5ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 22:52:23.539021"], ["updated_at", "2015-01-03 22:52:23.539021"]]  (44.5ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 1], ["published_at", "2015-01-03 22:52:23.586339"], ["state", "published"], ["created_at", "2015-01-03 22:52:23.591144"], ["updated_at", "2015-01-03 22:52:23.591144"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:23 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.2ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:24 -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"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.4ms) 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-03 22:52:24.413327"], ["updated_at", "2015-01-03 22:52:24.413327"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (59.9ms) commit transaction Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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 (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.9ms) Completed 200 OK in 92ms (Views: 0.8ms | ActiveRecord: 62.7ms)  (31.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (37.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.9ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.8ms) DELETE FROM sqlite_sequence where name = 'users';  (32.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (42.1ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 22:52:24.990651"], ["updated_at", "2015-01-03 22:52:24.990651"]]  (42.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 1], ["published_at", "2015-01-03 22:52:25.035885"], ["state", "published"], ["created_at", "2015-01-03 22:52:25.037654"], ["updated_at", "2015-01-03 22:52:25.037654"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:25 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.4ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:25 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"3"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) 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)  (46.8ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (29.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.6ms) DELETE FROM sqlite_sequence where name = 'users';  (41.2ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.7ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-03 22:52:25.825451"], ["updated_at", "2015-01-03 22:52:25.825451"]]  (37.7ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-03 22:52:25.871125"], ["updated_at", "2015-01-03 22:52:25.871125"]]  (39.5ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 2], ["published_at", "2015-01-03 22:52:25.916053"], ["state", "published"], ["created_at", "2015-01-03 22:52:25.920722"], ["updated_at", "2015-01-03 22:52:25.920722"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author38"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-03 22:52:25.974489"], ["updated_at", "2015-01-03 22:52:25.974489"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.9ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (37.5ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author39"], ["body", "body39"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:26.026017"], ["updated_at", "2015-01-03 22:52:26.026017"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (39.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:26 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.1ms) 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.8ms) Proclaim::Comment Exists (0.1ms) 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.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/comments/_comment.html.erb (6.3ms) 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 (22.8ms) Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 17:52:26 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.9ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.5ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (53.0ms) commit transaction Completed 200 OK in 73ms (Views: 0.4ms | ActiveRecord: 55.3ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (26.3ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.2ms) DELETE FROM sqlite_sequence where name = 'users';  (41.4ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 22:52:27.785002"], ["updated_at", "2015-01-03 22:52:27.785002"]]  (45.0ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-03 22:52:27.837841"], ["updated_at", "2015-01-03 22:52:27.837841"]]  (37.3ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 2], ["published_at", "2015-01-03 22:52:27.880478"], ["state", "published"], ["created_at", "2015-01-03 22:52:27.885009"], ["updated_at", "2015-01-03 22:52:27.885009"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.1ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-03 22:52:27.934900"], ["updated_at", "2015-01-03 22:52:27.934900"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (33.7ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author41"], ["body", "body41"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:27.983407"], ["updated_at", "2015-01-03 22:52:27.983407"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (54.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:28 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.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 (8.1ms) Proclaim::Comment Exists (0.1ms) 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.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/comments/_comment.html.erb (6.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 (24.6ms) Completed 200 OK in 30ms (Views: 25.6ms | ActiveRecord: 1.2ms) Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-03 17:52:28 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:52:28.774519"], ["id", 2]]  (71.1ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (3.4ms) 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/_comment.html.erb (10.9ms) Completed 200 OK in 100ms (Views: 0.8ms | ActiveRecord: 72.4ms)  (37.2ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (31.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.9ms) DELETE FROM sqlite_sequence where name = 'users';  (46.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (45.2ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 22:52:29.474066"], ["updated_at", "2015-01-03 22:52:29.474066"]]  (36.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 1], ["published_at", "2015-01-03 22:52:29.515266"], ["state", "published"], ["created_at", "2015-01-03 22:52:29.518110"], ["updated_at", "2015-01-03 22:52:29.518110"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.9ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author42"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-03 22:52:29.563003"], ["updated_at", "2015-01-03 22:52:29.563003"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (44.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:29 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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 (10.4ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:30 -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"=>"7", "solution"=>"7"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:30.465242"], ["updated_at", "2015-01-03 22:52:30.465242"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (78.1ms) commit transaction Proclaim::Comment Load (0.3ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (5.2ms) Completed 200 OK in 111ms (Views: 0.5ms | ActiveRecord: 81.3ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:31 -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"=>"7", "solution"=>"7"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) 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-03 22:52:31.292753"], ["updated_at", "2015-01-03 22:52:31.292753"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (66.3ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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 (8.1ms) Completed 200 OK in 99ms (Views: 0.5ms | ActiveRecord: 68.5ms)  (46.8ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.0ms) DELETE FROM sqlite_sequence where name = 'users';  (35.6ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (57.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.5ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 22:52:31.971673"], ["updated_at", "2015-01-03 22:52:31.971673"]]  (33.5ms) commit transaction  (0.3ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 1], ["published_at", "2015-01-03 22:52:32.008869"], ["state", "published"], ["created_at", "2015-01-03 22:52:32.013399"], ["updated_at", "2015-01-03 22:52:32.013399"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author43"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-03 22:52:32.058669"], ["updated_at", "2015-01-03 22:52:32.058669"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (46.7ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author44"], ["body", "body44"], ["post_id", 1], ["created_at", "2015-01-03 22:52:32.120418"], ["updated_at", "2015-01-03 22:52:32.120418"]] SQL (0.9ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (43.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:32 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (5.1ms) Proclaim::Comment Exists (0.1ms) 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.2ms) 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 (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.6ms) Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 0.8ms)  (43.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (49.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (51.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (44.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.3ms) DELETE FROM sqlite_sequence where name = 'users';  (43.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 22:52:32.966916"], ["updated_at", "2015-01-03 22:52:32.966916"]]  (35.8ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 1], ["published_at", "2015-01-03 22:52:33.006922"], ["state", "published"], ["created_at", "2015-01-03 22:52:33.011638"], ["updated_at", "2015-01-03 22:52:33.011638"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.9ms) commit transaction  (0.3ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author45"], ["body", "body45"], ["post_id", 1], ["created_at", "2015-01-03 22:52:33.060453"], ["updated_at", "2015-01-03 22:52:33.060453"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (38.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:33 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.1ms) 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 (11.7ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:33 -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"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 9ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (45.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (49.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (37.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.9ms) DELETE FROM sqlite_sequence where name = 'users';  (47.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (45.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 22:52:34.182833"], ["updated_at", "2015-01-03 22:52:34.182833"]]  (39.0ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 1], ["published_at", "2015-01-03 22:52:34.224749"], ["state", "published"], ["created_at", "2015-01-03 22:52:34.229168"], ["updated_at", "2015-01-03 22:52:34.229168"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:34 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (5.9ms) Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 0.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:52:34 -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"=>"3"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (27.7ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (21.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (25.1ms) DELETE FROM "proclaim_comments";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (31.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.2ms) DELETE FROM sqlite_sequence where name = 'users';  (40.0ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (45.6ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 22:52:35.168900"], ["updated_at", "2015-01-03 22:52:35.168900"]]  (45.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) 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-03 22:52:35.216834"], ["state", "published"], ["created_at", "2015-01-03 22:52:35.218583"], ["updated_at", "2015-01-03 22:52:35.218583"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-03 22:52:35.263283"], ["updated_at", "2015-01-03 22:52:35.263283"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (51.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:35 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.6ms) 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 (13.1ms) Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.7ms)  (38.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (42.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'users';  (31.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.4ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 22:52:35.853989"], ["updated_at", "2015-01-03 22:52:35.853989"]]  (37.9ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 22:52:35.902523"], ["updated_at", "2015-01-03 22:52:35.902523"]]  (36.6ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 2], ["published_at", "2015-01-03 22:52:35.944487"], ["state", "published"], ["created_at", "2015-01-03 22:52:35.949132"], ["updated_at", "2015-01-03 22:52:35.949132"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (34.7ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-03 22:52:35.995055"], ["updated_at", "2015-01-03 22:52:35.995055"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (32.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author48"], ["body", "body48"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:52:36.042685"], ["updated_at", "2015-01-03 22:52:36.042685"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (36.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:52:36 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.6ms) Proclaim::Comment Exists (0.1ms) 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.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.1ms) 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 (25.5ms) Completed 200 OK in 31ms (Views: 26.5ms | ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-03 17:52:36 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.6ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.3ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (27.3ms) commit transaction Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 28.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (21.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (25.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (40.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (25.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.6ms) DELETE FROM sqlite_sequence where name = 'users';  (28.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.7ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 22:52:37.906417"], ["updated_at", "2015-01-03 22:52:37.906417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:52:37 -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.6ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:52:37 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"8"}, "commit"=>"Subscribe"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 22:52:37.938899"], ["updated_at", "2015-01-03 22:52:37.938899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:52:37 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:52:37 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 22:52:37.958382"], ["updated_at", "2015-01-03 22:52:37.958382"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3cceb149-11e4-466b-8242-6df087a145f6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.8ms [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Date: Sat, 03 Jan 2015 17:52:37 -0500 From: from@example.com To: example@example.com Message-ID: <54a872b5f26fe_6414b2531830330@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872b5f1e22_6414b253183029e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872b5f1e22_6414b253183029e 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_54a872b5f1e22_6414b253183029e 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_54a872b5f1e22_6414b253183029e-- [ActiveJob] [ActionMailer::DeliveryJob] [3cceb149-11e4-466b-8242-6df087a145f6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.71ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 41ms (ActiveRecord: 0.8ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 17:52:37 -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.7ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.3ms) rollback transaction  (0.1ms) 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 17:52:38 -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.7ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:52:38 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 22:52:38.030763"], ["updated_at", "2015-01-03 22:52:38.030763"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 46a4e20f-ce51-4dc1-936e-6213533aaee5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 38.2ms [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Date: Sat, 03 Jan 2015 17:52:38 -0500 From: from@example.com To: example@example.com Message-ID: <54a872b6121c5_6414b2531830524@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a872b6118d8_6414b2531830413"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a872b6118d8_6414b2531830413 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_54a872b6118d8_6414b2531830413 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_54a872b6118d8_6414b2531830413-- [ActiveJob] [ActionMailer::DeliveryJob] [46a4e20f-ce51-4dc1-936e-6213533aaee5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.9ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 49ms (ActiveRecord: 0.9ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 17:52:38 -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.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:52:38 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:52:38 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) 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.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 22:52:38.109818"], ["updated_at", "2015-01-03 22:52:38.109818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 1], ["created_at", "2015-01-03 22:52:38.112800"], ["updated_at", "2015-01-03 22:52:38.112800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 22:52:38.118541"], ["updated_at", "2015-01-03 22:52:38.118541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["created_at", "2015-01-03 22:52:38.120992"], ["updated_at", "2015-01-03 22:52:38.120992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author50"], ["body", "body49"], ["post_id", 1], ["created_at", "2015-01-03 22:52:38.123235"], ["updated_at", "2015-01-03 22:52:38.123235"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-03 22:54:36.132964"], ["updated_at", "2015-01-03 22:54:36.132964"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7516554f-44c9-4dfa-a073-ad9c26e89cde) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (10.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 235.1ms [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Sent mail to email1@example.com (9.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email1@example.com Message-ID: <54a8732c63272_64b7995318115dc@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732c61a35_64b799531811481"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732c61a35_64b799531811481 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_54a8732c61a35_64b799531811481 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_54a8732c61a35_64b799531811481-- [ActiveJob] [ActionMailer::DeliveryJob] [7516554f-44c9-4dfa-a073-ad9c26e89cde] Performed ActionMailer::DeliveryJob from Inline(mailers) in 244.93ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email2@example.com"], ["created_at", "2015-01-03 22:54:36.412723"], ["updated_at", "2015-01-03 22:54:36.412723"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e8460a64-8e32-4c65-b6aa-623c51716b9c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [e8460a64-8e32-4c65-b6aa-623c51716b9c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [e8460a64-8e32-4c65-b6aa-623c51716b9c] 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] [e8460a64-8e32-4c65-b6aa-623c51716b9c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.9ms [ActiveJob] [ActionMailer::DeliveryJob] [e8460a64-8e32-4c65-b6aa-623c51716b9c] Sent mail to email2@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [e8460a64-8e32-4c65-b6aa-623c51716b9c] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email2@example.com Message-ID: <54a8732c6cb77_64b79953181178a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732c6c28a_64b79953181164f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732c6c28a_64b79953181164f 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_54a8732c6c28a_64b79953181164f 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_54a8732c6c28a_64b79953181164f-- [ActiveJob] [ActionMailer::DeliveryJob] [e8460a64-8e32-4c65-b6aa-623c51716b9c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.97ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email3@example.com"], ["created_at", "2015-01-03 22:54:36.476767"], ["updated_at", "2015-01-03 22:54:36.476767"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 97bda492-327b-43ad-a5fd-8a9e30de8841) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [97bda492-327b-43ad-a5fd-8a9e30de8841] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [97bda492-327b-43ad-a5fd-8a9e30de8841] 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] [97bda492-327b-43ad-a5fd-8a9e30de8841] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.6ms [ActiveJob] [ActionMailer::DeliveryJob] [97bda492-327b-43ad-a5fd-8a9e30de8841] Sent mail to email3@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [97bda492-327b-43ad-a5fd-8a9e30de8841] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email3@example.com Message-ID: <54a8732c7cb85_64b7995318119a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732c7c236_64b7995318118bc"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732c7c236_64b7995318118bc 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_54a8732c7c236_64b7995318118bc 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_54a8732c7c236_64b7995318118bc-- [ActiveJob] [ActionMailer::DeliveryJob] [97bda492-327b-43ad-a5fd-8a9e30de8841] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.59ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email4@example.com"], ["created_at", "2015-01-03 22:54:36.515347"], ["updated_at", "2015-01-03 22:54:36.515347"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] 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] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.8ms [ActiveJob] [ActionMailer::DeliveryJob] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] Sent mail to email4@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email4@example.com Message-ID: <54a8732c84c81_64b7995318121d4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732c8441d_64b799531812044"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732c8441d_64b799531812044 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_54a8732c8441d_64b799531812044 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_54a8732c8441d_64b799531812044-- [ActiveJob] [ActionMailer::DeliveryJob] [d9ee9bf0-f89f-4d60-a3b0-2f24ea9ec20e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.45ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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.3ms) Completed 200 OK in 74ms (Views: 73.6ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (4.1ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email5@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email5@example.com"], ["created_at", "2015-01-03 22:54:36.646429"], ["updated_at", "2015-01-03 22:54:36.646429"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 871ee605-4654-4380-a6ea-fa89a07bcf93) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.7ms [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Sent mail to email5@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email5@example.com Message-ID: <54a8732ca8fb9_64b7995318123a9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732ca861d_64b799531812249"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732ca861d_64b799531812249 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_54a8732ca861d_64b799531812249 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_54a8732ca861d_64b799531812249-- [ActiveJob] [ActionMailer::DeliveryJob] [871ee605-4654-4380-a6ea-fa89a07bcf93] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.98ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 54ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:54:36.706533"], ["updated_at", "2015-01-03 22:54:36.706533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email6@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email6@example.com"], ["created_at", "2015-01-03 22:54:36.714856"], ["updated_at", "2015-01-03 22:54:36.714856"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 34b01729-14fb-44c4-8ac6-058b886ea294) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.9ms [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Sent mail to email6@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Date: Sat, 03 Jan 2015 17:54:36 -0500 From: from@example.com To: email6@example.com Message-ID: <54a8732cb666d_64b799531812581@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8732cb5e15_64b799531812442"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8732cb5e15_64b799531812442 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_54a8732cb5e15_64b799531812442 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_54a8732cb5e15_64b799531812442-- [ActiveJob] [ActionMailer::DeliveryJob] [34b01729-14fb-44c4-8ac6-058b886ea294] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 40ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email7@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (328.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (333.0ms) Completed 200 OK in 336ms (Views: 334.6ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:54:37.107950"], ["updated_at", "2015-01-03 22:54:37.107950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.110727"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.112330"], ["updated_at", "2015-01-03 22:54:37.112330"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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 (7.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (32.6ms) Completed 200 OK in 56ms (Views: 52.9ms | ActiveRecord: 0.6ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:54:37.192703"], ["updated_at", "2015-01-03 22:54:37.192703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.194439"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.195748"], ["updated_at", "2015-01-03 22:54:37.195748"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:54:37.199270"], ["updated_at", "2015-01-03 22:54:37.199270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title3"], ["body", "body3"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.200431"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.201763"], ["updated_at", "2015-01-03 22:54:37.201763"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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 (5.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:54:37.222138"], ["updated_at", "2015-01-03 22:54:37.222138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:54:37.224843"], ["updated_at", "2015-01-03 22:54:37.224843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.226185"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.227517"], ["updated_at", "2015-01-03 22:54:37.227517"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.0ms) 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.0ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) 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 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:54:37.254330"], ["updated_at", "2015-01-03 22:54:37.254330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:54:37.261048"], ["updated_at", "2015-01-03 22:54:37.261048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.263536"], ["updated_at", "2015-01-03 22:54:37.263536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:37.268762"], ["updated_at", "2015-01-03 22:54:37.268762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 22:54:37.273070"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:54:37.279568"], ["updated_at", "2015-01-03 22:54:37.279568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:54:37.293432"], ["updated_at", "2015-01-03 22:54:37.293432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.295228"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.296741"], ["updated_at", "2015-01-03 22:54:37.296741"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:54:37.300508"], ["updated_at", "2015-01-03 22:54:37.300508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title7"], ["body", "body7"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.301741"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.302965"], ["updated_at", "2015-01-03 22:54:37.302965"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) 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: 4.9ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:54:37.320689"], ["updated_at", "2015-01-03 22:54:37.320689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title8"], ["body", "body8"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.322310"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.323549"], ["updated_at", "2015-01-03 22:54:37.323549"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) 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 (2.7ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:54:37.339222"], ["updated_at", "2015-01-03 22:54:37.339222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:54:37.342273"], ["updated_at", "2015-01-03 22:54:37.342273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title9"], ["body", "body9"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.343712"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.345245"], ["updated_at", "2015-01-03 22:54:37.345245"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.0ms) 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.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:54:37.361539"], ["updated_at", "2015-01-03 22:54:37.361539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.363186"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.364429"], ["updated_at", "2015-01-03 22:54:37.364429"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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.7ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:54:37.383072"], ["updated_at", "2015-01-03 22:54:37.383072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title11"], ["body", "Necessitatibus quis voluptatum sint nisi corrupti consequatur. Ut assumenda incidunt. Omnis autem quis sint explicabo. Suscipit nemo hic. Voluptatibus voluptatem velit architecto voluptatum qui ipsam ducimus. Modi non ratione quibusdam aperiam delectus. Eaque et dolorem molestiae sed eveniet eius. Velit omnis facilis. Minima esse illo qui corrupti sint sit. Ad et eos similique tempore qui cum sint. Inventore dolor repellat est vel et. Id quo quae. Dignissimos sit fuga quod autem assumenda. Quibusdam dolores commodi. Tempora eius libero quam aut. Ut non aliquid. Earum aut qui. Harum soluta expedita aliquam sit magni cum omnis. Ipsam magni omnis voluptas totam pariatur dolor ipsa. Consequatur est qui a aliquam voluptas iste amet. Ipsam labore non doloremque ut. Aut deleniti ad dignissimos molestiae placeat fugit. Consequatur laborum harum eaque dignissimos. Velit magni pariatur ullam dolorem et et. Sed excepturi consequatur. Illo at similique explicabo. Voluptatem et fugiat quis iure rerum fugit. Aspernatur dolor sed cumque ratione distinctio et ullam. Animi laboriosam velit distinctio in harum quis repudiandae. Et dolorem eius. Illum autem dolores et molestiae quaerat corrupti. Rem ipsa reiciendis possimus sunt et. Quos quae similique tempore iusto. Expedita sequi similique id. Quisquam rerum necessitatibus. Officia consequatur dicta sed assumenda dolorem velit ea. Ipsum nisi nihil quis libero tenetur molestiae. Tempora similique ducimus. Similique quia consequuntur dicta. Non voluptas dicta minima sint enim. Voluptas nihil aut. Aliquid nobis eaque ut quia. Enim laborum occaecati error consequatur temporibus. Sit molestiae illum consequatur possimus sequi est. Molestias dicta illum. Voluptas explicabo voluptate laudantium. Nihil animi numquam in quam dolor qui. Eaque itaque possimus pariatur quo rerum minus ut. Dolorem repellendus minima dolor. Ea quo quam sint delectus consequuntur. Eius expedita voluptatem ducimus qui deleniti. Vel vel possimus minima ullam."], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.384652"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.386005"], ["updated_at", "2015-01-03 22:54:37.386005"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:54:37.389389"], ["updated_at", "2015-01-03 22:54:37.389389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title12"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.390493"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.391691"], ["updated_at", "2015-01-03 22:54:37.391691"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:54:37.412002"], ["updated_at", "2015-01-03 22:54:37.412002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title13"], ["body", "Sunt neque natus occaecati quis. Dolorem aut doloribus dolores voluptatem deleniti sapiente. Enim velit debitis esse voluptates voluptatum. Explicabo non in et. Omnis voluptatibus omnis vero minus dolorem. Illum odit molestiae laborum eligendi laboriosam sit rerum. Exercitationem deleniti non necessitatibus sunt eum. Rerum nostrum vel quisquam fugiat architecto velit. Perspiciatis temporibus dolores saepe velit quasi nesciunt ratione. Et aperiam eius non saepe rerum. Inventore est consequatur hic. Deleniti officia praesentium laborum necessitatibus cupiditate aut. Nisi qui et aut quidem voluptatum voluptates. Tempora illum soluta. Aut inventore eum qui exercitationem nihil. Eum voluptatum eveniet quia veritatis deserunt molestias. Nihil et eum atque libero molestiae ullam. Aut odit in aut repellat autem nulla illum. Reiciendis nobis porro nostrum neque rerum velit ut. Explicabo asperiores nihil et sit aperiam repellat tenetur. Porro libero molestiae accusantium reiciendis quia ipsum esse. Perferendis non sunt fugiat error magni voluptatem. Quidem blanditiis est esse animi qui dolor voluptatem. Vero qui voluptatibus dolores consequatur velit fuga perferendis. Deserunt et aliquid. Quas sunt velit repellat facilis. Qui laboriosam et magni consequatur praesentium adipisci. Nihil aut deleniti. Cum id magnam. Consectetur impedit sapiente voluptatibus rerum sunt. Omnis alias ut doloribus. Reiciendis quae velit nesciunt voluptate consectetur expedita. Impedit repellendus ut quo harum qui. Rerum non magni quia ut. Sapiente et voluptatem. Corrupti aliquam ut. Id qui dolor consequatur et. Eaque non veritatis dolore rem explicabo vel. Distinctio vitae labore dolore sit qui. Mollitia dolor porro distinctio. Quia officia architecto quis velit vero. Pariatur praesentium aspernatur ut a. Quibusdam ab minus porro atque deserunt laboriosam. Occaecati veritatis exercitationem consectetur assumenda minima sit. Qui officiis enim ut. Aspernatur suscipit neque corporis occaecati at fuga temporibus. Mollitia quasi assumenda nostrum ab quod laboriosam qui. Sed unde sint ut quae et provident. Eum mollitia tempore molestias asperiores. Necessitatibus optio esse. Natus dolorum rerum sed velit sed asperiores. Quasi cumque ut corporis voluptatem voluptatem ratione."], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.413815"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.415390"], ["updated_at", "2015-01-03 22:54:37.415390"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:54:37.418964"], ["updated_at", "2015-01-03 22:54:37.418964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.420151"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.421403"], ["updated_at", "2015-01-03 22:54:37.421403"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.5ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:54:37.443626"], ["updated_at", "2015-01-03 22:54:37.443626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:54:37.448089"], ["updated_at", "2015-01-03 22:54:37.448089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body11"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.450330"], ["updated_at", "2015-01-03 22:54:37.450330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.452526"], ["updated_at", "2015-01-03 22:54:37.452526"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body2"], ["author", "author2"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:54:37.479030"], ["updated_at", "2015-01-03 22:54:37.479030"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.8ms) 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 (17.4ms) Completed 200 OK in 40ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:54:37.520074"], ["updated_at", "2015-01-03 22:54:37.520074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title16"], ["body", "body12"], ["author_id", 3], ["published_at", "2015-01-03 22:54:37.521396"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.522693"], ["updated_at", "2015-01-03 22:54:37.522693"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 2], ["created_at", "2015-01-03 22:54:37.525280"], ["updated_at", "2015-01-03 22:54:37.525280"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author4", "body"=>"body4", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body4"], ["author", "author4"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-03 22:54:37.534219"], ["updated_at", "2015-01-03 22:54:37.534219"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.1ms) INSERT 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 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] 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 (3.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.2ms) Completed 200 OK in 22ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:54:37.559640"], ["updated_at", "2015-01-03 22:54:37.559640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:54:37.563266"], ["updated_at", "2015-01-03 22:54:37.563266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body13"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.565448"], ["updated_at", "2015-01-03 22:54:37.565448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author5"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.567620"], ["updated_at", "2015-01-03 22:54:37.567620"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:54:37.582549"], ["updated_at", "2015-01-03 22:54:37.582549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body14"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.585271"], ["updated_at", "2015-01-03 22:54:37.585271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author6", "body"=>"body6", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:54:37.595736"], ["updated_at", "2015-01-03 22:54:37.595736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title19"], ["body", "body15"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.597107"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.598546"], ["updated_at", "2015-01-03 22:54:37.598546"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body7"], ["author", "author7"], ["post_id", 2], ["created_at", "2015-01-03 22:54:37.604192"], ["updated_at", "2015-01-03 22:54:37.604192"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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 (41.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (45.1ms) Completed 200 OK in 54ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:54:37.659917"], ["updated_at", "2015-01-03 22:54:37.659917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:54:37.664169"], ["updated_at", "2015-01-03 22:54:37.664169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body16"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.666730"], ["updated_at", "2015-01-03 22:54:37.666730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body8"], ["author", "author8"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.675482"], ["updated_at", "2015-01-03 22:54:37.675482"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (16.1ms) Completed 200 OK in 27ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:54:37.702472"], ["updated_at", "2015-01-03 22:54:37.702472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "body17"], ["author_id", 3], ["published_at", "2015-01-03 22:54:37.703953"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.705415"], ["updated_at", "2015-01-03 22:54:37.705415"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body9"], ["author", "author9"], ["post_id", 2], ["created_at", "2015-01-03 22:54:37.712070"], ["updated_at", "2015-01-03 22:54:37.712070"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.0ms) Completed 200 OK in 24ms (Views: 0.7ms | ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:54:37.737980"], ["updated_at", "2015-01-03 22:54:37.737980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title22"], ["body", "body18"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.739894"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.741375"], ["updated_at", "2015-01-03 22:54:37.741375"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body10"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.744862"], ["updated_at", "2015-01-03 22:54:37.744862"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 22:54:37.763227"], ["updated_at", "2015-01-03 22:54:37.763227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title23"], ["body", "body19"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.766556"], ["updated_at", "2015-01-03 22:54:37.766556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author12"], ["body", "body12"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.769288"], ["updated_at", "2015-01-03 22:54:37.769288"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) 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)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:54:37.784756"], ["updated_at", "2015-01-03 22:54:37.784756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title24"], ["body", "body20"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.791019"], ["updated_at", "2015-01-03 22:54:37.791019"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author13"], ["body", "body13"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.794878"], ["updated_at", "2015-01-03 22:54:37.794878"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:54:37.809784"], ["updated_at", "2015-01-03 22:54:37.809784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title25"], ["body", "body21"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.812835"], ["updated_at", "2015-01-03 22:54:37.812835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author14"], ["body", "body14"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.815888"], ["updated_at", "2015-01-03 22:54:37.815888"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:54:37.832291"], ["updated_at", "2015-01-03 22:54:37.832291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title26"], ["body", "body22"], ["author_id", 2], ["published_at", "2015-01-03 22:54:37.833769"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.835173"], ["updated_at", "2015-01-03 22:54:37.835173"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body16"], ["post_id", 2], ["created_at", "2015-01-03 22:54:37.837830"], ["updated_at", "2015-01-03 22:54:37.837830"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author17", "body"=>"body17", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body17"], ["author", "author17"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-03 22:54:37.846943"], ["updated_at", "2015-01-03 22:54:37.846943"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) 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]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.1ms) Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:54:37.869151"], ["updated_at", "2015-01-03 22:54:37.869151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "body23"], ["author_id", 1], ["published_at", "2015-01-03 22:54:37.870847"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.872179"], ["updated_at", "2015-01-03 22:54:37.872179"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:54:37.885039"], ["updated_at", "2015-01-03 22:54:37.885039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 22:54:37.888752"], ["updated_at", "2015-01-03 22:54:37.888752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title28"], ["body", "body24"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.891028"], ["updated_at", "2015-01-03 22:54:37.891028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body19"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.893403"], ["updated_at", "2015-01-03 22:54:37.893403"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author19", "body"=>"body19", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.1ms) Completed 200 OK in 19ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:54:37.926830"], ["updated_at", "2015-01-03 22:54:37.926830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 22:54:37.930273"], ["updated_at", "2015-01-03 22:54:37.930273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body25", "title"=>"title29"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title29"], ["body", "body25"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.938967"], ["updated_at", "2015-01-03 22:54:37.938967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 22:54:37.948576"], ["updated_at", "2015-01-03 22:54:37.948576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 22:54:37.952548"], ["updated_at", "2015-01-03 22:54:37.952548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title30"], ["body", "body26"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.955142"], ["updated_at", "2015-01-03 22:54:37.955142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 22:54:37.957944"], ["updated_at", "2015-01-03 22:54:37.957944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body27"], ["author_id", 3], ["published_at", "2015-01-03 22:54:37.959139"], ["state", "published"], ["created_at", "2015-01-03 22:54:37.960346"], ["updated_at", "2015-01-03 22:54:37.960346"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (14.9ms) Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 22:54:37.984801"], ["updated_at", "2015-01-03 22:54:37.984801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 22:54:37.988089"], ["updated_at", "2015-01-03 22:54:37.988089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title32"], ["body", "body28"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.990261"], ["updated_at", "2015-01-03 22:54:37.990261"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (10.4ms) Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 22:54:38.020115"], ["updated_at", "2015-01-03 22:54:38.020115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 22:54:38.023605"], ["updated_at", "2015-01-03 22:54:38.023605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title33"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title33"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.036988"], ["updated_at", "2015-01-03 22:54:38.036988"]] SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:38.038893"], ["updated_at", "2015-01-03 22:54:38.038893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:54:38.044504"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 18ms (ActiveRecord: 1.0ms) Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 22:54:38.055853"], ["updated_at", "2015-01-03 22:54:38.055853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body30"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.058472"], ["updated_at", "2015-01-03 22:54:38.058472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 22:54:38.061075"], ["updated_at", "2015-01-03 22:54:38.061075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title35"], ["body", "body31"], ["author_id", 2], ["published_at", "2015-01-03 22:54:38.062379"], ["state", "published"], ["created_at", "2015-01-03 22:54:38.063608"], ["updated_at", "2015-01-03 22:54:38.063608"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) 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 (5.3ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 22:54:38.078702"], ["updated_at", "2015-01-03 22:54:38.078702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title36"], ["body", "body32"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.081440"], ["updated_at", "2015-01-03 22:54:38.081440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 22:54:38.091840"], ["updated_at", "2015-01-03 22:54:38.091840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 22:54:38.095025"], ["updated_at", "2015-01-03 22:54:38.095025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.097229"], ["updated_at", "2015-01-03 22:54:38.097229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title37"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:38.110222"], ["updated_at", "2015-01-03 22:54:38.110222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:54:38.114316"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 14ms (ActiveRecord: 0.7ms) Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.0ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 22:54:38.124616"], ["updated_at", "2015-01-03 22:54:38.124616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 22:54:38.127837"], ["updated_at", "2015-01-03 22:54:38.127837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body34", "title"=>"title38"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title38"], ["body", "body34"], ["author_id", 1], ["published_at", "2015-01-03 22:54:38.134635"], ["state", "published"], ["created_at", "2015-01-03 22:54:38.137218"], ["updated_at", "2015-01-03 22:54:38.137218"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 22:54:38.147424"], ["updated_at", "2015-01-03 22:54:38.147424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 22:54:38.151352"], ["updated_at", "2015-01-03 22:54:38.151352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title39"], ["body", "body35"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.153693"], ["updated_at", "2015-01-03 22:54:38.153693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body35", "title"=>"title39"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 22:54:38.159930"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-03 22:54:38.162373"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 22:54:38.172056"], ["updated_at", "2015-01-03 22:54:38.172056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 22:54:38.175342"], ["updated_at", "2015-01-03 22:54:38.175342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.177482"], ["updated_at", "2015-01-03 22:54:38.177482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body36", "title"=>"title40"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-03 22:54:38.193909"], ["updated_at", "2015-01-03 22:54:38.193909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 22:54:38.197789"], ["updated_at", "2015-01-03 22:54:38.197789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title41"], ["body", "body37"], ["author_id", 2], ["published_at", "2015-01-03 22:54:38.199380"], ["state", "published"], ["created_at", "2015-01-03 22:54:38.200834"], ["updated_at", "2015-01-03 22:54:38.200834"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 22:54:38.216475"], ["updated_at", "2015-01-03 22:54:38.216475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body38"], ["author_id", 3], ["created_at", "2015-01-03 22:54:38.218836"], ["updated_at", "2015-01-03 22:54:38.218836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) 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 (3.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 22:54:38.233036"], ["updated_at", "2015-01-03 22:54:38.233036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title43"], ["body", "body39"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.235681"], ["updated_at", "2015-01-03 22:54:38.235681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body39", "title"=>"title43"}, "id"=>"1"} Proclaim::Post Load (0.1ms) 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 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 22:54:38.247955"], ["updated_at", "2015-01-03 22:54:38.247955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body40", "title"=>"title44"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-03 22:54:38.261285"], ["updated_at", "2015-01-03 22:54:38.261285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body41"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.264071"], ["updated_at", "2015-01-03 22:54:38.264071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-03 22:54:38.276198"], ["updated_at", "2015-01-03 22:54:38.276198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title46"], ["body", "body42"], ["author_id", 1], ["published_at", "2015-01-03 22:54:38.277911"], ["state", "published"], ["created_at", "2015-01-03 22:54:38.279212"], ["updated_at", "2015-01-03 22:54:38.279212"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 22:54:38.295679"], ["updated_at", "2015-01-03 22:54:38.295679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title47"], ["body", "body43"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.298216"], ["updated_at", "2015-01-03 22:54:38.298216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-03 22:54:38.304657"], ["updated_at", "2015-01-03 22:54:38.304657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 22:54:38.308164"], ["updated_at", "2015-01-03 22:54:38.308164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title48"], ["body", "body44"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.310645"], ["updated_at", "2015-01-03 22:54:38.310645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 22:54:38.327258"], ["updated_at", "2015-01-03 22:54:38.327258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (5.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (5.7ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-03 22:54:38.429964"], ["updated_at", "2015-01-03 22:54:38.429964"]]  (28.1ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title49"], ["body", "body45"], ["author_id", 1], ["published_at", "2015-01-03 22:54:38.460671"], ["state", "published"], ["created_at", "2015-01-03 22:54:38.465067"], ["updated_at", "2015-01-03 22:54:38.465067"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (33.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:42 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.7ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) 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 (5.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.0ms) Completed 200 OK in 19ms (Views: 14.7ms | ActiveRecord: 1.7ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 17:54:42 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 17:54:42 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54: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"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-03 22:54:43.926811"], ["updated_at", "2015-01-03 22:54:43.926811"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.8ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:43.942797"], ["updated_at", "2015-01-03 22:54:43.942797"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 13c0cd08-67ca-4f08-8ebf-1304b13a21ab) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.4ms [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Sent mail to example@example.com (4.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Date: Sat, 03 Jan 2015 17:54:43 -0500 From: from@example.com To: example@example.com Message-ID: <54a87333effb1_64b71ba6fac12718@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87333ef4a1_64b71ba6fac12624"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87333ef4a1_64b71ba6fac12624 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_54a87333ef4a1_64b71ba6fac12624 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_54a87333ef4a1_64b71ba6fac12624-- [ActiveJob] [ActionMailer::DeliveryJob] [13c0cd08-67ca-4f08-8ebf-1304b13a21ab] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.74ms  (61.5ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.8ms) Completed 200 OK in 137ms (Views: 0.4ms | ActiveRecord: 65.3ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 17:54:44 -0500  (0.5ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (77.7ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (80.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (61.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (116.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (69.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (63.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (49.5ms) DELETE FROM sqlite_sequence where name = 'users';  (71.1ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (77.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (58.0ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 22:54:44.898570"], ["updated_at", "2015-01-03 22:54:44.898570"]]  (52.6ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title50"], ["body", "body46"], ["author_id", 1], ["published_at", "2015-01-03 22:54:44.953769"], ["state", "published"], ["created_at", "2015-01-03 22:54:44.957698"], ["updated_at", "2015-01-03 22:54:44.957698"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (54.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:45 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.4ms) Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:45 -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"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-03 22:54:45.833993"], ["updated_at", "2015-01-03 22:54:45.833993"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 20ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (59.5ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (37.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.4ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.0ms) DELETE FROM sqlite_sequence where name = 'users';  (38.1ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 22:54:46.241560"], ["updated_at", "2015-01-03 22:54:46.241560"]]  (39.6ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 22:54:46.284369"], ["updated_at", "2015-01-03 22:54:46.284369"]]  (47.6ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title51"], ["body", "body47"], ["author_id", 2], ["published_at", "2015-01-03 22:54:46.336454"], ["state", "published"], ["created_at", "2015-01-03 22:54:46.341413"], ["updated_at", "2015-01-03 22:54:46.341413"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:46 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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 (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:47 -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"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.5ms) 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-03 22:54:47.235721"], ["updated_at", "2015-01-03 22:54:47.235721"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:47.247536"], ["updated_at", "2015-01-03 22:54:47.247536"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b4014410-0e72-4275-b9b6-0e6500791ce8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 37.4ms [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Sent mail to example@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Date: Sat, 03 Jan 2015 17:54:47 -0500 From: from@example.com To: example@example.com Message-ID: <54a873374826b_64b71ba6fac129dd@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87337477d1_64b71ba6fac1287"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87337477d1_64b71ba6fac1287 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_54a87337477d1_64b71ba6fac1287 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_54a87337477d1_64b71ba6fac1287-- [ActiveJob] [ActionMailer::DeliveryJob] [b4014410-0e72-4275-b9b6-0e6500791ce8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.77ms  (38.7ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.3ms) 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 (10.3ms) Completed 200 OK in 124ms (Views: 0.7ms | ActiveRecord: 42.9ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (32.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'users';  (38.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-03 22:54:47.759059"], ["updated_at", "2015-01-03 22:54:47.759059"]]  (47.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title52"], ["body", "body48"], ["author_id", 1], ["published_at", "2015-01-03 22:54:47.808258"], ["state", "published"], ["created_at", "2015-01-03 22:54:47.809922"], ["updated_at", "2015-01-03 22:54:47.809922"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:47 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:48 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"7", "solution"=>"7"}, "subscription"=>{"subscribe"=>"true", "email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-03 22:54:48.541652"], ["updated_at", "2015-01-03 22:54:48.541652"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 19ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (71.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (100.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (108.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (48.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (52.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.7ms) DELETE FROM sqlite_sequence where name = 'users';  (55.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (58.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 22:54:49.158790"], ["updated_at", "2015-01-03 22:54:49.158790"]]  (53.8ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body49"], ["author_id", 1], ["published_at", "2015-01-03 22:54:49.217567"], ["state", "published"], ["created_at", "2015-01-03 22:54:49.222148"], ["updated_at", "2015-01-03 22:54:49.222148"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (55.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:49 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (5.6ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:50 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"2", "solution"=>"2"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.5ms) 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-03 22:54:50.056837"], ["updated_at", "2015-01-03 22:54:50.056837"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:50.065801"], ["updated_at", "2015-01-03 22:54:50.065801"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 25a1ad38-826e-4577-a30d-523816f6a610) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 44.1ms [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Date: Sat, 03 Jan 2015 17:54:50 -0500 From: from@example.com To: example@example.com Message-ID: <54a8733a1cf3e_64b71ba6fac13110@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8733a1c465_64b71ba6fac130b8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8733a1c465_64b71ba6fac130b8 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_54a8733a1c465_64b71ba6fac130b8 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_54a8733a1c465_64b71ba6fac130b8-- [ActiveJob] [ActionMailer::DeliveryJob] [25a1ad38-826e-4577-a30d-523816f6a610] Performed ActionMailer::DeliveryJob from Inline(mailers) in 50.02ms  (60.3ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.4ms) Completed 200 OK in 148ms (Views: 0.5ms | ActiveRecord: 63.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (48.0ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.9ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (66.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (88.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (92.5ms) DELETE FROM sqlite_sequence where name = 'users';  (71.1ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (63.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (60.7ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 22:54:50.870121"], ["updated_at", "2015-01-03 22:54:50.870121"]]  (57.6ms) commit transaction  (0.3ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title54"], ["body", "body50"], ["author_id", 1], ["published_at", "2015-01-03 22:54:50.931659"], ["state", "published"], ["created_at", "2015-01-03 22:54:50.936345"], ["updated_at", "2015-01-03 22:54:50.936345"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (55.2ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author20"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-03 22:54:51.001526"], ["updated_at", "2015-01-03 22:54:51.001526"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (65.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:51 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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 (7.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (22.1ms) Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:51 -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"=>"7"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) 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.2ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (54.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.9ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (46.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.0ms) DELETE FROM sqlite_sequence where name = 'users';  (45.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (43.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-03 22:54:52.439593"], ["updated_at", "2015-01-03 22:54:52.439593"]]  (41.8ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title55"], ["body", "body51"], ["author_id", 1], ["published_at", "2015-01-03 22:54:52.486595"], ["state", "published"], ["created_at", "2015-01-03 22:54:52.488160"], ["updated_at", "2015-01-03 22:54:52.488160"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (51.5ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-03 22:54:52.548556"], ["updated_at", "2015-01-03 22:54:52.548556"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (36.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:52 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.5ms) 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 (11.5ms) Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:53 -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"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (41.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (26.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.8ms) DELETE FROM sqlite_sequence where name = 'users';  (27.9ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (24.4ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 22:54:53.766063"], ["updated_at", "2015-01-03 22:54:53.766063"]]  (47.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 22:54:53.817556"], ["updated_at", "2015-01-03 22:54:53.817556"]]  (35.7ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title56"], ["body", "body52"], ["author_id", 2], ["published_at", "2015-01-03 22:54:53.855799"], ["state", "published"], ["created_at", "2015-01-03 22:54:53.860390"], ["updated_at", "2015-01-03 22:54:53.860390"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.6ms) commit transaction  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-03 22:54:53.909072"], ["updated_at", "2015-01-03 22:54:53.909072"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (46.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:53 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.5ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.7ms) 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 (17.7ms) Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:54 -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"=>"2", "solution"=>"2"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:54:54.894875"], ["updated_at", "2015-01-03 22:54:54.894875"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:54.909198"], ["updated_at", "2015-01-03 22:54:54.909198"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9dcf771e-3006-457a-a84a-02774f4f16f2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.1ms [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Sent mail to example@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Date: Sat, 03 Jan 2015 17:54:54 -0500 From: from@example.com To: example@example.com Message-ID: <54a8733ee81d1_64b71ba6fac133cb@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8733ee7419_64b71ba6fac132eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8733ee7419_64b71ba6fac132eb 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_54a8733ee7419_64b71ba6fac132eb 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_54a8733ee7419_64b71ba6fac132eb-- [ActiveJob] [ActionMailer::DeliveryJob] [9dcf771e-3006-457a-a84a-02774f4f16f2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.07ms  (47.2ms) commit transaction Proclaim::Comment Load (0.4ms) 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", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.3ms) 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.8ms) 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 (15.2ms) Completed 200 OK in 151ms (Views: 1.2ms | ActiveRecord: 51.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (43.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (30.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (41.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.7ms) DELETE FROM sqlite_sequence where name = 'users';  (37.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 22:54:55.493469"], ["updated_at", "2015-01-03 22:54:55.493469"]]  (41.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title57"], ["body", "body53"], ["author_id", 1], ["published_at", "2015-01-03 22:54:55.537147"], ["state", "published"], ["created_at", "2015-01-03 22:54:55.541370"], ["updated_at", "2015-01-03 22:54:55.541370"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.3ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 22:54:55.582099"], ["updated_at", "2015-01-03 22:54:55.582099"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (43.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:55 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (11.1ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:54:56 -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"=>"7", "solution"=>"7"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:54:56.539000"], ["updated_at", "2015-01-03 22:54:56.539000"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:56.548640"], ["updated_at", "2015-01-03 22:54:56.548640"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.6ms [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Date: Sat, 03 Jan 2015 17:54:56 -0500 From: from@example.com To: example@example.com Message-ID: <54a8734090670_64b71ba6fac1353f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873408fc52_64b71ba6fac134fc"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873408fc52_64b71ba6fac134fc 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_54a873408fc52_64b71ba6fac134fc 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_54a873408fc52_64b71ba6fac134fc-- [ActiveJob] [ActionMailer::DeliveryJob] [09c712f1-f4bb-4e9f-a155-ea9f6bf57e1c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.27ms  (29.5ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (5.8ms) Completed 200 OK in 109ms (Views: 0.5ms | ActiveRecord: 33.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (22.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (45.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.0ms) DELETE FROM sqlite_sequence where name = 'users';  (43.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.4ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email8@example.com"], ["created_at", "2015-01-03 22:54:57.005202"], ["updated_at", "2015-01-03 22:54:57.005202"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b72ae2dc-a636-43eb-800c-699abf844f08) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 69.8ms [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Sent mail to email8@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email8@example.com Message-ID: <54a8734113a4e_64b7995318137cb@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341131a2_64b79953181364e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341131a2_64b79953181364e 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_54a87341131a2_64b79953181364e 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_54a87341131a2_64b79953181364e-- [ActiveJob] [ActionMailer::DeliveryJob] [b72ae2dc-a636-43eb-800c-699abf844f08] Performed ActionMailer::DeliveryJob from Inline(mailers) in 73.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 22:54:57.084695"], ["updated_at", "2015-01-03 22:54:57.084695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title58"], ["body", "body54"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.086297"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.087684"], ["updated_at", "2015-01-03 22:54:57.087684"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 50f6ba58-81ff-44bb-9c39-4e0d26716082) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] 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] [50f6ba58-81ff-44bb-9c39-4e0d26716082] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 39.0ms [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Sent mail to email8@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email8@example.com Message-ID: <54a8734120754_64b7995318139aa@Pandora.mail> Subject: New Post: title58 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873411fe39_64b799531813821"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873411fe39_64b799531813821 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title58 ******* body54 Written on January 03, 2015 at 10:54 PM UTC by first_name80 last_name80 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_54a873411fe39_64b799531813821 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title58

body54
----==_mimepart_54a873411fe39_64b799531813821-- [ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.77ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-03 22:54:57.138894"], ["updated_at", "2015-01-03 22:54:57.138894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title59"], ["body", "body55"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.141481"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.142855"], ["updated_at", "2015-01-03 22:54:57.142855"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email9@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.146858"], ["updated_at", "2015-01-03 22:54:57.146858"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] 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] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.0ms [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Sent mail to email9@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email9@example.com Message-ID: <54a873412c276_64b799531814150@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873412b991_64b799531814029"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873412b991_64b799531814029 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_54a873412b991_64b799531814029 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_54a873412b991_64b799531814029-- [ActiveJob] [ActionMailer::DeliveryJob] [b5cfea9a-b1eb-4b3f-abdb-b3cd9bbc58e4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.85ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.185189"], ["updated_at", "2015-01-03 22:54:57.185189"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2e157e1c-d605-4bff-a08e-25e732c9df60) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] 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] [2e157e1c-d605-4bff-a08e-25e732c9df60] 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] [2e157e1c-d605-4bff-a08e-25e732c9df60] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 32.6ms [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Sent mail to email9@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email9@example.com Message-ID: <54a8734136a2f_64b7995318143cd@Pandora.mail> Subject: New Comment On "title59" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341361f6_64b799531814248"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341361f6_64b799531814248 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body24 Written on January 03, 2015 at 10:54 PM UTC by author24 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_54a87341361f6_64b799531814248 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body24
----==_mimepart_54a87341361f6_64b799531814248-- [ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Performed ActionMailer::DeliveryJob from Inline(mailers) in 36.29ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-03 22:54:57.230295"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email10@example.com"], ["created_at", "2015-01-03 22:54:57.234766"], ["updated_at", "2015-01-03 22:54:57.234766"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 63bde592-bf82-49ad-95ab-f384c4c169fe) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [63bde592-bf82-49ad-95ab-f384c4c169fe] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [63bde592-bf82-49ad-95ab-f384c4c169fe] 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] [63bde592-bf82-49ad-95ab-f384c4c169fe] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms [ActiveJob] [ActionMailer::DeliveryJob] [63bde592-bf82-49ad-95ab-f384c4c169fe] Sent mail to email10@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [63bde592-bf82-49ad-95ab-f384c4c169fe] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email10@example.com Message-ID: <54a8734141387_64b79953181451a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734140a89_64b799531814423"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734140a89_64b799531814423 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_54a8734140a89_64b799531814423 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_54a8734140a89_64b799531814423-- [ActiveJob] [ActionMailer::DeliveryJob] [63bde592-bf82-49ad-95ab-f384c4c169fe] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.98ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 22:54:57.271485"], ["updated_at", "2015-01-03 22:54:57.271485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title60"], ["body", "body56"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.274218"], ["updated_at", "2015-01-03 22:54:57.274218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 22:54:57.275936"], ["state", "published"], ["updated_at", "2015-01-03 22:54:57.277057"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8dcd26df-b199-4e06-bdae-989dcb279e7e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] 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] [8dcd26df-b199-4e06-bdae-989dcb279e7e] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] 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] [8dcd26df-b199-4e06-bdae-989dcb279e7e] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] Sent mail to email10@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email10@example.com Message-ID: <54a873414a8b9_64b79953181476@Pandora.mail> Subject: New Post: title60 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734149fe2_64b79953181468"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734149fe2_64b79953181468 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title60 ******* body56 Written on January 03, 2015 at 10:54 PM UTC by first_name82 last_name82 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_54a8734149fe2_64b79953181468 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title60

body56
----==_mimepart_54a8734149fe2_64b79953181468-- [ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.19ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 22:54:57.311327"], ["updated_at", "2015-01-03 22:54:57.311327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title61"], ["body", "body57"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.313099"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.314427"], ["updated_at", "2015-01-03 22:54:57.314427"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email11@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.318469"], ["updated_at", "2015-01-03 22:54:57.318469"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b6bce4ec-7336-4f38-a59a-1dc88a4384b6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] 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] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.8ms [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Sent mail to email11@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email11@example.com Message-ID: <54a8734155bda_64b799531814998@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734155336_64b799531814870"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734155336_64b799531814870 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_54a8734155336_64b799531814870 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_54a8734155336_64b799531814870-- [ActiveJob] [ActionMailer::DeliveryJob] [b6bce4ec-7336-4f38-a59a-1dc88a4384b6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.53ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 22:54:57.357327"], ["updated_at", "2015-01-03 22:54:57.357327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title62"], ["body", "body58"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.359158"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.360556"], ["updated_at", "2015-01-03 22:54:57.360556"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email12@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.364563"], ["updated_at", "2015-01-03 22:54:57.364563"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e93627df-c4f2-4a95-9d62-9259def01aef) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] 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] [e93627df-c4f2-4a95-9d62-9259def01aef] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.1ms [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] Sent mail to email12@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email12@example.com Message-ID: <54a87341629dd_64b79953181515c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873416211a_64b799531815093"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873416211a_64b799531815093 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_54a873416211a_64b799531815093 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_54a873416211a_64b799531815093-- [ActiveJob] [ActionMailer::DeliveryJob] [e93627df-c4f2-4a95-9d62-9259def01aef] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.3ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.408840"], ["updated_at", "2015-01-03 22:54:57.408840"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3e741613-7246-43f8-a7d3-a7867758a9e0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] 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] [3e741613-7246-43f8-a7d3-a7867758a9e0] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 38.9ms [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Sent mail to email12@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email12@example.com Message-ID: <54a873416f1a0_64b7995318153a9@Pandora.mail> Subject: New Comment On "title62" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873416e80d_64b7995318152f6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873416e80d_64b7995318152f6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body25 Written on January 03, 2015 at 10:54 PM UTC by author25 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_54a873416e80d_64b7995318152f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body25
----==_mimepart_54a873416e80d_64b7995318152f6-- [ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.85ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email13@example.com"], ["created_at", "2015-01-03 22:54:57.464310"], ["updated_at", "2015-01-03 22:54:57.464310"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cd00bb6e-85dd-4805-878f-4b1d8a48eb41) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] 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] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.0ms [ActiveJob] [ActionMailer::DeliveryJob] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] Sent mail to email13@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email13@example.com Message-ID: <54a8734179b1f_64b799531815548@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734179240_64b799531815474"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734179240_64b799531815474 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_54a8734179240_64b799531815474 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_54a8734179240_64b799531815474-- [ActiveJob] [ActionMailer::DeliveryJob] [cd00bb6e-85dd-4805-878f-4b1d8a48eb41] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.82ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 22:54:57.502713"], ["updated_at", "2015-01-03 22:54:57.502713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title63"], ["body", "body59"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.504248"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.505655"], ["updated_at", "2015-01-03 22:54:57.505655"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e8a3d0e6-1ae4-4669-ba60-217d1ab70679) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] 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] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] 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] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 23.1ms [ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] Sent mail to email13@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email13@example.com Message-ID: <54a8734182d1c_64b7995318157a4@Pandora.mail> Subject: New Post: title63 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341824a3_64b79953181564c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341824a3_64b79953181564c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title63 ******* body59 Written on January 03, 2015 at 10:54 PM UTC by first_name85 last_name85 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_54a87341824a3_64b79953181564c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title63

body59
----==_mimepart_54a87341824a3_64b79953181564c-- [ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.27ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 22:54:57.542610"], ["updated_at", "2015-01-03 22:54:57.542610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title64"], ["body", "body60"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.545152"], ["updated_at", "2015-01-03 22:54:57.545152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.547476"], ["updated_at", "2015-01-03 22:54:57.547476"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 22:54:57.554955"], ["updated_at", "2015-01-03 22:54:57.554955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title65"], ["body", "body61"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.557377"], ["updated_at", "2015-01-03 22:54:57.557377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 22:54:57.567625"], ["updated_at", "2015-01-03 22:54:57.567625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title66"], ["body", "body62"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.570489"], ["updated_at", "2015-01-03 22:54:57.570489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:57.575705"], ["updated_at", "2015-01-03 22:54:57.575705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 22:54:57.589743"], ["updated_at", "2015-01-03 22:54:57.589743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body63"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.592314"], ["updated_at", "2015-01-03 22:54:57.592314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:57.596435"], ["updated_at", "2015-01-03 22:54:57.596435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 22:54:57.603879"], ["updated_at", "2015-01-03 22:54:57.603879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body64"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.606462"], ["updated_at", "2015-01-03 22:54:57.606462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 22:54:57.613229"], ["updated_at", "2015-01-03 22:54:57.613229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title69"], ["body", "body65"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.616144"], ["updated_at", "2015-01-03 22:54:57.616144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 22:54:57.619354"], ["updated_at", "2015-01-03 22:54:57.619354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 22:54:57.624975"], ["updated_at", "2015-01-03 22:54:57.624975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 22:54:57.630206"], ["updated_at", "2015-01-03 22:54:57.630206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title72"], ["body", "body68"], ["author_id", 4], ["published_at", "2015-01-03 22:54:57.632343"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.633819"], ["updated_at", "2015-01-03 22:54:57.633819"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 22:54:57.638185"], ["updated_at", "2015-01-03 22:54:57.638185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 22:54:57.642794"], ["updated_at", "2015-01-03 22:54:57.642794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 22:54:57.646433"], ["updated_at", "2015-01-03 22:54:57.646433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 22:54:57.650672"], ["updated_at", "2015-01-03 22:54:57.650672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 22:54:57.654276"], ["updated_at", "2015-01-03 22:54:57.654276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 22:54:57.660357"], ["updated_at", "2015-01-03 22:54:57.660357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title78"], ["body", "body69"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.662867"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.664311"], ["updated_at", "2015-01-03 22:54:57.664311"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 22:54:57.669062"], ["updated_at", "2015-01-03 22:54:57.669062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 22:54:57.674867"], ["updated_at", "2015-01-03 22:54:57.674867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title79"], ["body", "body71"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.676567"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.677976"], ["updated_at", "2015-01-03 22:54:57.677976"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 22:54:57.688364"], ["updated_at", "2015-01-03 22:54:57.688364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 22:54:57.700718"], ["updated_at", "2015-01-03 22:54:57.700718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 22:54:57.704556"], ["updated_at", "2015-01-03 22:54:57.704556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 22:54:57.708230"], ["updated_at", "2015-01-03 22:54:57.708230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 22:54:57.711928"], ["updated_at", "2015-01-03 22:54:57.711928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 22:54:57.715988"], ["updated_at", "2015-01-03 22:54:57.715988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title87"], ["body", "body74"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.718814"], ["updated_at", "2015-01-03 22:54:57.718814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email14@example.com"], ["created_at", "2015-01-03 22:54:57.726460"], ["updated_at", "2015-01-03 22:54:57.726460"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a43be823-5a12-4a30-8c07-3a42ee762648) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.6ms [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Sent mail to email14@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email14@example.com Message-ID: <54a87341bb350_64b799531815991@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341ba8f3_64b79953181586d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341ba8f3_64b79953181586d 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_54a87341ba8f3_64b79953181586d 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_54a87341ba8f3_64b79953181586d-- [ActiveJob] [ActionMailer::DeliveryJob] [a43be823-5a12-4a30-8c07-3a42ee762648] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.91ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.4ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 17:54:57 -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.6ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 22:54:57.809829"], ["updated_at", "2015-01-03 22:54:57.809829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title88"], ["body", "body75"], ["author_id", 1], ["published_at", "2015-01-03 22:54:57.811948"], ["state", "published"], ["created_at", "2015-01-03 22:54:57.813646"], ["updated_at", "2015-01-03 22:54:57.813646"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email15@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.819760"], ["updated_at", "2015-01-03 22:54:57.819760"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ea4dad28-83af-457c-90b8-31f7f10f0d8e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] 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] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.9ms [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Sent mail to email15@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: email15@example.com Message-ID: <54a87341d110b_64b79953181617c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341d0807_64b799531816015"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341d0807_64b799531816015 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_54a87341d0807_64b799531816015 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_54a87341d0807_64b799531816015-- [ActiveJob] [ActionMailer::DeliveryJob] [ea4dad28-83af-457c-90b8-31f7f10f0d8e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.86ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) 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 (0.3ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 17:54:57 -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.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 22:54:57.883387"], ["updated_at", "2015-01-03 22:54:57.883387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.4ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"5"}, "commit"=>"Subscribe"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) 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 17:54:57 -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)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 22:54:57.926537"], ["updated_at", "2015-01-03 22:54:57.926537"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5933af03-8aa1-449e-b3b7-432eb4f4cf7a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] 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] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] Sent mail to example@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] Date: Sat, 03 Jan 2015 17:54:57 -0500 From: from@example.com To: example@example.com Message-ID: <54a87341eb00d_64b7995318163e2@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87341ea701_64b79953181628a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87341ea701_64b79953181628a 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_54a87341ea701_64b79953181628a 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_54a87341ea701_64b79953181628a-- [ActiveJob] [ActionMailer::DeliveryJob] [5933af03-8aa1-449e-b3b7-432eb4f4cf7a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.62ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 42ms (ActiveRecord: 0.8ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#subscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (1.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:54:57 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 22:54:58.004345"], ["updated_at", "2015-01-03 22:54:58.004345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 17:54:58 -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.4ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 17:54:58 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-03 22:54:58.024205"], ["updated_at", "2015-01-03 22:54:58.024205"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: be3d8246-80ee-4f0a-b727-4dbfc73e6219) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.7ms [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Sent mail to example@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: example@example.com Message-ID: <54a87342e200_64b7995318165f3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342d8b6_64b7995318164cf"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342d8b6_64b7995318164cf 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_54a87342d8b6_64b7995318164cf 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_54a87342d8b6_64b7995318164cf-- [ActiveJob] [ActionMailer::DeliveryJob] [be3d8246-80ee-4f0a-b727-4dbfc73e6219] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.39ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 39ms (ActiveRecord: 0.7ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 17:54:58 -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.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-03 22:54:58.082042"], ["updated_at", "2015-01-03 22:54:58.082042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 22:54:58.087597"], ["updated_at", "2015-01-03 22:54:58.087597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.089723"], ["updated_at", "2015-01-03 22:54:58.089723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325698-25783-7933/test.jpg"} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_images"  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 22:54:58.107622"], ["updated_at", "2015-01-03 22:54:58.107622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title90"], ["body", "body77"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.111150"], ["updated_at", "2015-01-03 22:54:58.111150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-03 22:54:58.116278"], ["updated_at", "2015-01-03 22:54:58.116278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title91"], ["body", "body78"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.118700"], ["updated_at", "2015-01-03 22:54:58.118700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.122644"], ["updated_at", "2015-01-03 22:54:58.122644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 22:54:58.133751"], ["updated_at", "2015-01-03 22:54:58.133751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title92"], ["body", "body79"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.136091"], ["updated_at", "2015-01-03 22:54:58.136091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 22:54:58.146679"], ["updated_at", "2015-01-03 22:54:58.146679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title93"], ["body", "body80"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.149446"], ["updated_at", "2015-01-03 22:54:58.149446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 22:54:58.153911"], ["updated_at", "2015-01-03 22:54:58.153911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-03 22:54:58.157892"], ["updated_at", "2015-01-03 22:54:58.157892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title94"], ["body", "body81"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.160307"], ["updated_at", "2015-01-03 22:54:58.160307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 22:54:58.170589"], ["updated_at", "2015-01-03 22:54:58.170589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title95"], ["body", "body82"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.172771"], ["updated_at", "2015-01-03 22:54:58.172771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-03 22:54:58.177452"], ["updated_at", "2015-01-03 22:54:58.177452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title96"], ["body", "body83"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.179805"], ["updated_at", "2015-01-03 22:54:58.179805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325698-25783-6684/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 22:54:58.189835"], ["updated_at", "2015-01-03 22:54:58.189835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body84"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.192271"], ["updated_at", "2015-01-03 22:54:58.192271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 22:54:58.197605"], ["updated_at", "2015-01-03 22:54:58.197605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title98"], ["body", "body85"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.200195"], ["updated_at", "2015-01-03 22:54:58.200195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 22:54:58.209024"], ["updated_at", "2015-01-03 22:54:58.209024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body86"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.211257"], ["updated_at", "2015-01-03 22:54:58.211257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 22:54:58.215234"], ["updated_at", "2015-01-03 22:54:58.215234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 22:54:58.219135"], ["updated_at", "2015-01-03 22:54:58.219135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", "body87"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.221510"], ["updated_at", "2015-01-03 22:54:58.221510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.230980"], ["updated_at", "2015-01-03 22:54:58.230980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 22:54:58.236120"], ["updated_at", "2015-01-03 22:54:58.236120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body88"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.238292"], ["updated_at", "2015-01-03 22:54:58.238292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 22:54:58.242326"], ["updated_at", "2015-01-03 22:54:58.242326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-03 22:54:58.245648"], ["updated_at", "2015-01-03 22:54:58.245648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title102"], ["body", "body89"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.247978"], ["updated_at", "2015-01-03 22:54:58.247978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.252336"], ["updated_at", "2015-01-03 22:54:58.252336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-03 22:54:58.262413"], ["updated_at", "2015-01-03 22:54:58.262413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title103"], ["body", "body90"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.264833"], ["updated_at", "2015-01-03 22:54:58.264833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 22:54:58.268968"], ["updated_at", "2015-01-03 22:54:58.268968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-03 22:54:58.271675"], ["updated_at", "2015-01-03 22:54:58.271675"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 19f6d205-79a8-49d9-97b9-ca62a82edf5f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.5ms [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Sent mail to email16@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email16@example.com Message-ID: <54a873424a7e6_64b7995318167c7@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734249ec2_64b799531816685"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734249ec2_64b799531816685 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_54a8734249ec2_64b799531816685 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_54a8734249ec2_64b799531816685-- [ActiveJob] [ActionMailer::DeliveryJob] [19f6d205-79a8-49d9-97b9-ca62a82edf5f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.29ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-03 22:54:58.309424"], ["updated_at", "2015-01-03 22:54:58.309424"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4366e975-9634-4d98-8146-5ed2f12d811c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [4366e975-9634-4d98-8146-5ed2f12d811c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [4366e975-9634-4d98-8146-5ed2f12d811c] 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] [4366e975-9634-4d98-8146-5ed2f12d811c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms [ActiveJob] [ActionMailer::DeliveryJob] [4366e975-9634-4d98-8146-5ed2f12d811c] Sent mail to email17@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4366e975-9634-4d98-8146-5ed2f12d811c] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email17@example.com Message-ID: <54a8734253287_64b79953181695e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342529cb_64b7995318168eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342529cb_64b7995318168eb 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_54a87342529cb_64b7995318168eb 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_54a87342529cb_64b7995318168eb-- [ActiveJob] [ActionMailer::DeliveryJob] [4366e975-9634-4d98-8146-5ed2f12d811c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.46ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 22:54:58.345945"], ["updated_at", "2015-01-03 22:54:58.345945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email18@example.com"], ["created_at", "2015-01-03 22:54:58.348720"], ["updated_at", "2015-01-03 22:54:58.348720"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5073f26c-1ea9-461b-af77-5620bcb4f153) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5073f26c-1ea9-461b-af77-5620bcb4f153] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5073f26c-1ea9-461b-af77-5620bcb4f153] 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] [5073f26c-1ea9-461b-af77-5620bcb4f153] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.2ms [ActiveJob] [ActionMailer::DeliveryJob] [5073f26c-1ea9-461b-af77-5620bcb4f153] Sent mail to email18@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [5073f26c-1ea9-461b-af77-5620bcb4f153] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email18@example.com Message-ID: <54a873425d3e4_64b79953181717f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873425ca80_64b799531817059"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873425ca80_64b799531817059 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_54a873425ca80_64b799531817059 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_54a873425ca80_64b799531817059-- [ActiveJob] [ActionMailer::DeliveryJob] [5073f26c-1ea9-461b-af77-5620bcb4f153] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.28ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 22:54:58.386554"], ["updated_at", "2015-01-03 22:54:58.386554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-03 22:54:58.389411"], ["updated_at", "2015-01-03 22:54:58.389411"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6910e622-7d65-434d-aa6d-06d3a26f87b3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6910e622-7d65-434d-aa6d-06d3a26f87b3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6910e622-7d65-434d-aa6d-06d3a26f87b3] 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] [6910e622-7d65-434d-aa6d-06d3a26f87b3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.7ms [ActiveJob] [ActionMailer::DeliveryJob] [6910e622-7d65-434d-aa6d-06d3a26f87b3] Sent mail to email19@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [6910e622-7d65-434d-aa6d-06d3a26f87b3] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email19@example.com Message-ID: <54a8734268bdd_64b79953181734a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734266361_64b79953181724b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734266361_64b79953181724b 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_54a8734266361_64b79953181724b 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_54a8734266361_64b79953181724b-- [ActiveJob] [ActionMailer::DeliveryJob] [6910e622-7d65-434d-aa6d-06d3a26f87b3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.54ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 22:54:58.434565"], ["updated_at", "2015-01-03 22:54:58.434565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.4ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email20@example.com"], ["created_at", "2015-01-03 22:54:58.443990"], ["updated_at", "2015-01-03 22:54:58.443990"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 49ac83be-d674-4d0c-bb9e-286391968a93) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49ac83be-d674-4d0c-bb9e-286391968a93] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [49ac83be-d674-4d0c-bb9e-286391968a93] 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] [49ac83be-d674-4d0c-bb9e-286391968a93] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.0ms [ActiveJob] [ActionMailer::DeliveryJob] [49ac83be-d674-4d0c-bb9e-286391968a93] Sent mail to email20@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [49ac83be-d674-4d0c-bb9e-286391968a93] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email20@example.com Message-ID: <54a87342749cc_64b799531817581@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342740cf_64b79953181749e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342740cf_64b79953181749e 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_54a87342740cf_64b79953181749e 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_54a87342740cf_64b79953181749e-- [ActiveJob] [ActionMailer::DeliveryJob] [49ac83be-d674-4d0c-bb9e-286391968a93] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.05ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 22:54:58.482597"], ["updated_at", "2015-01-03 22:54:58.482597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 22:54:58.485849"], ["updated_at", "2015-01-03 22:54:58.485849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title104"], ["body", "body91"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.488074"], ["updated_at", "2015-01-03 22:54:58.488074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 22:54:58.491619"], ["updated_at", "2015-01-03 22:54:58.491619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title105"], ["body", "body92"], ["author_id", 3], ["published_at", "2015-01-03 22:54:58.493123"], ["state", "published"], ["created_at", "2015-01-03 22:54:58.494645"], ["updated_at", "2015-01-03 22:54:58.494645"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 22:54:58.499079"], ["updated_at", "2015-01-03 22:54:58.499079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title106"], ["body", "body93"], ["author_id", 4], ["created_at", "2015-01-03 22:54:58.501409"], ["updated_at", "2015-01-03 22:54:58.501409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 22:54:58.504031"], ["updated_at", "2015-01-03 22:54:58.504031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title107"], ["body", "body94"], ["author_id", 5], ["published_at", "2015-01-03 22:54:58.505180"], ["state", "published"], ["created_at", "2015-01-03 22:54:58.506364"], ["updated_at", "2015-01-03 22:54:58.506364"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email27@example.com"], ["created_at", "2015-01-03 22:54:58.512037"], ["updated_at", "2015-01-03 22:54:58.512037"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 923a9b10-3a7b-494e-ad56-56d97c5286b9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [923a9b10-3a7b-494e-ad56-56d97c5286b9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [923a9b10-3a7b-494e-ad56-56d97c5286b9] 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] [923a9b10-3a7b-494e-ad56-56d97c5286b9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.3ms [ActiveJob] [ActionMailer::DeliveryJob] [923a9b10-3a7b-494e-ad56-56d97c5286b9] Sent mail to email27@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [923a9b10-3a7b-494e-ad56-56d97c5286b9] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email27@example.com Message-ID: <54a8734285a4b_64b799531817775@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734285153_64b799531817624"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734285153_64b799531817624 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_54a8734285153_64b799531817624 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_54a8734285153_64b799531817624-- [ActiveJob] [ActionMailer::DeliveryJob] [923a9b10-3a7b-494e-ad56-56d97c5286b9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.12ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 22:54:58.551907"], ["updated_at", "2015-01-03 22:54:58.551907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title108"], ["body", "body95"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.554435"], ["updated_at", "2015-01-03 22:54:58.554435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.558501"], ["updated_at", "2015-01-03 22:54:58.558501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-03 22:54:58.561202"], ["state", "published"], ["updated_at", "2015-01-03 22:54:58.562871"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 64c3accf-0a9f-4eac-88ad-1472207b4580) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] 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] [64c3accf-0a9f-4eac-88ad-1472207b4580] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 25.0ms [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Sent mail to email27@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email27@example.com Message-ID: <54a873429102e_64b799531817991@Pandora.mail> Subject: New Post: title108 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a873429075b_64b7995318178b4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a873429075b_64b7995318178b4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******** title108 ******** Written on January 03, 2015 at 10:54 PM UTC by first_name140 last_name140 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_54a873429075b_64b7995318178b4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title108

----==_mimepart_54a873429075b_64b7995318178b4-- [ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.01ms  (0.1ms) 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 (1.4ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 35.2ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email28@example.com"], ["created_at", "2015-01-03 22:54:58.636343"], ["updated_at", "2015-01-03 22:54:58.636343"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3a82be34-593a-4e48-949e-0e282b89d8aa) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3a82be34-593a-4e48-949e-0e282b89d8aa] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3a82be34-593a-4e48-949e-0e282b89d8aa] 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] [3a82be34-593a-4e48-949e-0e282b89d8aa] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.3ms [ActiveJob] [ActionMailer::DeliveryJob] [3a82be34-593a-4e48-949e-0e282b89d8aa] Sent mail to email28@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [3a82be34-593a-4e48-949e-0e282b89d8aa] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email28@example.com Message-ID: <54a87342a3869_64b7995318182c6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342a2f5a_64b799531818185"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342a2f5a_64b799531818185 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_54a87342a2f5a_64b799531818185 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_54a87342a2f5a_64b799531818185-- [ActiveJob] [ActionMailer::DeliveryJob] [3a82be34-593a-4e48-949e-0e282b89d8aa] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.26ms  (0.1ms) 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.5ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email29@example.com"], ["created_at", "2015-01-03 22:54:58.710898"], ["updated_at", "2015-01-03 22:54:58.710898"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aafd66d2-9d55-4544-a9c8-7605845a53af) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [aafd66d2-9d55-4544-a9c8-7605845a53af] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [aafd66d2-9d55-4544-a9c8-7605845a53af] 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] [aafd66d2-9d55-4544-a9c8-7605845a53af] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms [ActiveJob] [ActionMailer::DeliveryJob] [aafd66d2-9d55-4544-a9c8-7605845a53af] Sent mail to email29@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [aafd66d2-9d55-4544-a9c8-7605845a53af] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email29@example.com Message-ID: <54a87342b5ad5_64b7995318185de@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342b5149_64b799531818462"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342b5149_64b799531818462 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_54a87342b5149_64b799531818462 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_54a87342b5149_64b799531818462-- [ActiveJob] [ActionMailer::DeliveryJob] [aafd66d2-9d55-4544-a9c8-7605845a53af] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.31ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-03 22:54:58.748993"], ["updated_at", "2015-01-03 22:54:58.748993"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title109"], ["body", "body96"], ["author_id", 1], ["published_at", "2015-01-03 22:54:58.750844"], ["state", "published"], ["created_at", "2015-01-03 22:54:58.752352"], ["updated_at", "2015-01-03 22:54:58.752352"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: dde9ca4c-7026-4614-b817-ce77f01fe57c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] 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] [dde9ca4c-7026-4614-b817-ce77f01fe57c] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] 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] [dde9ca4c-7026-4614-b817-ce77f01fe57c] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 25.2ms [ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] Sent mail to email29@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email29@example.com Message-ID: <54a87342bfccd_64b7995318187c5@Pandora.mail> Subject: New Post: title109 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342bf3e2_64b7995318186f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342bf3e2_64b7995318186f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******** title109 ******** body96 Written on January 03, 2015 at 10:54 PM UTC by first_name141 last_name141 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_54a87342bf3e2_64b7995318186f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title109

body96
----==_mimepart_54a87342bf3e2_64b7995318186f-- [ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.93ms  (0.1ms) 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.8ms  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 22:54:58.821957"], ["updated_at", "2015-01-03 22:54:58.821957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title110"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.824498"], ["updated_at", "2015-01-03 22:54:58.824498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email30@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:54:58.827431"], ["updated_at", "2015-01-03 22:54:58.827431"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 417644b4-83e5-45b7-8c00-58d33322c09c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.5ms [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Sent mail to email30@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Date: Sat, 03 Jan 2015 17:54:58 -0500 From: from@example.com To: email30@example.com Message-ID: <54a87342d26b3_64b7995318190e3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a87342d1e2e_64b799531818960"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a87342d1e2e_64b799531818960 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_54a87342d1e2e_64b799531818960 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_54a87342d1e2e_64b799531818960-- [ActiveJob] [ActionMailer::DeliveryJob] [417644b4-83e5-45b7-8c00-58d33322c09c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.37ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-03 22:54:58.867017"], ["updated_at", "2015-01-03 22:54:58.867017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title111"], ["body", "body98"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.869474"], ["updated_at", "2015-01-03 22:54:58.869474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body29"], ["post_id", 2], ["created_at", "2015-01-03 22:54:58.871493"], ["updated_at", "2015-01-03 22:54:58.871493"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 21.9ms  (0.2ms) rollback transaction -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-03 22:54:58.908167"], ["updated_at", "2015-01-03 22:54:58.908167"]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 22:54:58.935558"], ["updated_at", "2015-01-03 22:54:58.935558"]]  (16.9ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title112"], ["body", "body99"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.958446"], ["updated_at", "2015-01-03 22:54:58.958446"]]  (17.9ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.989731"], ["updated_at", "2015-01-03 22:54:58.989731"]]  (28.8ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-03 22:54:59.030282"], ["id", 1]]  (28.5ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] 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/edit.html.erb within layouts/application (4.8ms) Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.3ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title112", "body"=>"

test

\r\n\t\t


", "images_attributes"=>{"1"=>{"id"=>"1", "_destroy"=>"true"}}}, "commit"=>"Update Post", "id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1 [["post_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

\r\n\t\t


"], ["updated_at", "2015-01-03 22:54:59.753150"], ["id", 1]] SQL (0.3ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (26.7ms) commit transaction Redirected to http://127.0.0.1:33881/proclaim/posts/1 Completed 302 Found in 41ms (ActiveRecord: 28.2ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:59 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.3ms)  (45.9ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (53.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (63.8ms) DELETE FROM sqlite_sequence where name = 'users';  (37.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (37.1ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-03 22:55:00.384717"], ["updated_at", "2015-01-03 22:55:00.384717"]]  (48.6ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:55:00 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:55:00 -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 (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_posts"  (61.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (69.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (80.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (52.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.2ms) DELETE FROM sqlite_sequence where name = 'users';  (51.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.1ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-03 22:55:01.415186"], ["updated_at", "2015-01-03 22:55:01.415186"]]  (52.4ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-03 22:55:01.476756"], ["updated_at", "2015-01-03 22:55:01.476756"]]  (50.9ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body100"], ["author_id", 2], ["created_at", "2015-01-03 22:55:01.533721"], ["updated_at", "2015-01-03 22:55:01.533721"]]  (52.1ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:55:01.597640"], ["updated_at", "2015-01-03 22:55:01.597640"]]  (47.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-03 22:55:01.651741"], ["id", 1]]  (52.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:55:01 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.0ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:55:02 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:02 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.4ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.6ms)  (42.1ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.3ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.3ms) DELETE FROM sqlite_sequence where name = 'users';  (42.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 22:55:02.763391"], ["updated_at", "2015-01-03 22:55:02.763391"]]  (30.2ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:55:02 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:55:03 -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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts"  (34.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (27.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (53.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (41.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.0ms) DELETE FROM sqlite_sequence where name = 'users';  (46.0ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (44.6ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-03 22:55:03.746417"], ["updated_at", "2015-01-03 22:55:03.746417"]]  (32.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 22:55:03.785516"], ["updated_at", "2015-01-03 22:55:03.785516"]]  (48.2ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title114"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-03 22:55:03.841091"], ["updated_at", "2015-01-03 22:55:03.841091"]]  (50.9ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 17:55:03 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) 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.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (2.7ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 17:55:04 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420325703-25783-4771/test.jpg"} Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (34.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.1ms) DELETE FROM sqlite_sequence where name = 'users';  (45.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 22:55:04.645615"], ["updated_at", "2015-01-03 22:55:04.645615"]]  (37.5ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 17:55:04 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:55:05 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"}  (0.1ms) begin transaction SQL (0.7ms) 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-03 22:55:05.350446"], ["updated_at", "2015-01-03 22:55:05.350446"]]  (39.7ms) commit transaction Redirected to http://127.0.0.1:33881/proclaim/posts/1 Completed 302 Found in 50ms (ActiveRecord: 40.5ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:05 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.2ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (38.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (49.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.3ms) DELETE FROM sqlite_sequence where name = 'users';  (42.4ms) DELETE FROM "proclaim_subscriptions";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (46.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email31@example.com"], ["created_at", "2015-01-03 22:55:06.041833"], ["updated_at", "2015-01-03 22:55:06.041833"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a4d32fbd-ab1c-4722-8f8c-fed8da4c0419) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.4ms [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Sent mail to email31@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: email31@example.com Message-ID: <54a8734a12bfb_64b7995318193a1@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a122f7_64b799531819263"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a122f7_64b799531819263 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_54a8734a122f7_64b799531819263 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_54a8734a122f7_64b799531819263-- [ActiveJob] [ActionMailer::DeliveryJob] [a4d32fbd-ab1c-4722-8f8c-fed8da4c0419] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.52ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email32@example.com"], ["created_at", "2015-01-03 22:55:06.081433"], ["updated_at", "2015-01-03 22:55:06.081433"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c26a160f-98b4-4a63-ae1a-67fdeafcedab) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] 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] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.0ms [ActiveJob] [ActionMailer::DeliveryJob] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] Sent mail to email32@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: email32@example.com Message-ID: <54a8734a1b9a0_64b7995318195cc@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a1b0ff_64b79953181946e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a1b0ff_64b79953181946e 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_54a8734a1b0ff_64b79953181946e 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_54a8734a1b0ff_64b79953181946e-- [ActiveJob] [ActionMailer::DeliveryJob] [c26a160f-98b4-4a63-ae1a-67fdeafcedab] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.83ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 22:55:06.121952"], ["updated_at", "2015-01-03 22:55:06.121952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title115"], ["body", "body101"], ["author_id", 1], ["published_at", "2015-01-03 22:55:06.123508"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.124847"], ["updated_at", "2015-01-03 22:55:06.124847"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email34@example.com"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.128860"], ["updated_at", "2015-01-03 22:55:06.128860"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8b3ad806-bdc7-483e-89eb-2695842e32e1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] 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] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.8ms [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Sent mail to email34@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: email34@example.com Message-ID: <54a8734a27f4a_64b7995318197d9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a275e9_64b79953181965"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a275e9_64b79953181965 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_54a8734a275e9_64b79953181965 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_54a8734a275e9_64b79953181965-- [ActiveJob] [ActionMailer::DeliveryJob] [8b3ad806-bdc7-483e-89eb-2695842e32e1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.0ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email35@example.com"], ["created_at", "2015-01-03 22:55:06.168602"], ["updated_at", "2015-01-03 22:55:06.168602"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] 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] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms [ActiveJob] [ActionMailer::DeliveryJob] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] Sent mail to email35@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: email35@example.com Message-ID: <54a8734a30c50_64b79953181995a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a30393_64b7995318198e0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a30393_64b7995318198e0 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_54a8734a30393_64b7995318198e0 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_54a8734a30393_64b7995318198e0-- [ActiveJob] [ActionMailer::DeliveryJob] [4a0d3c89-40cd-440e-8ff9-cb2ecf5f149f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.56ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-03 22:55:06.209118"], ["updated_at", "2015-01-03 22:55:06.209118"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] 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] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.7ms [ActiveJob] [ActionMailer::DeliveryJob] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] Sent mail to foo@bar.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8734a3b4b5_64b799531820184@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a3abb3_64b79953182003a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a3abb3_64b79953182003a 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_54a8734a3abb3_64b79953182003a 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_54a8734a3abb3_64b79953182003a-- [ActiveJob] [ActionMailer::DeliveryJob] [a9f9fd9e-73c6-43ae-bbb8-d1e000d47cb0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.59ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 22:55:06.249823"], ["updated_at", "2015-01-03 22:55:06.249823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title116"], ["body", "body102"], ["author_id", 1], ["created_at", "2015-01-03 22:55:06.252259"], ["updated_at", "2015-01-03 22:55:06.252259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.254992"], ["updated_at", "2015-01-03 22:55:06.254992"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d0758d82-fd29-45d2-8df2-33964368b97f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.3ms [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Sent mail to foo@bar.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Date: Sat, 03 Jan 2015 17:55:06 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8734a45f7c_64b799531820367@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8734a4570e_64b799531820262"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8734a4570e_64b799531820262 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_54a8734a4570e_64b799531820262 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_54a8734a4570e_64b799531820262-- [ActiveJob] [ActionMailer::DeliveryJob] [d0758d82-fd29-45d2-8df2-33964368b97f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.84ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 22:55:06.293687"], ["updated_at", "2015-01-03 22:55:06.293687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 22:55:06.296516"], ["updated_at", "2015-01-03 22:55:06.296516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.298675"], ["updated_at", "2015-01-03 22:55:06.298675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author31"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.300858"], ["updated_at", "2015-01-03 22:55:06.300858"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 22:55:06.306956"], ["updated_at", "2015-01-03 22:55:06.306956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 22:55:06.309713"], ["updated_at", "2015-01-03 22:55:06.309713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.311809"], ["updated_at", "2015-01-03 22:55:06.311809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body31"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.314164"], ["updated_at", "2015-01-03 22:55:06.314164"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-03 22:55:06.329255"], ["updated_at", "2015-01-03 22:55:06.329255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title119"], ["body", "body105"], ["author_id", 3], ["created_at", "2015-01-03 22:55:06.331717"], ["updated_at", "2015-01-03 22:55:06.331717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body32"], ["post_id", 2], ["created_at", "2015-01-03 22:55:06.333852"], ["updated_at", "2015-01-03 22:55:06.333852"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-03 22:55:06.340400"], ["updated_at", "2015-01-03 22:55:06.340400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 22:55:06.343173"], ["updated_at", "2015-01-03 22:55:06.343173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 2], ["published_at", "2015-01-03 22:55:06.344322"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.345612"], ["updated_at", "2015-01-03 22:55:06.345612"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 22:55:06.349537"], ["updated_at", "2015-01-03 22:55:06.349537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 3], ["created_at", "2015-01-03 22:55:06.351883"], ["updated_at", "2015-01-03 22:55:06.351883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-03 22:55:06.355229"], ["updated_at", "2015-01-03 22:55:06.355229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 22:55:06.358232"], ["updated_at", "2015-01-03 22:55:06.358232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.360335"], ["updated_at", "2015-01-03 22:55:06.360335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.362810"], ["updated_at", "2015-01-03 22:55:06.362810"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 22:55:06.369792"], ["updated_at", "2015-01-03 22:55:06.369792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 22:55:06.372091"], ["updated_at", "2015-01-03 22:55:06.372091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.374098"], ["updated_at", "2015-01-03 22:55:06.374098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 22:55:06.376678"], ["updated_at", "2015-01-03 22:55:06.376678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 3], ["published_at", "2015-01-03 22:55:06.377816"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.378977"], ["updated_at", "2015-01-03 22:55:06.378977"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 22:55:06.382579"], ["updated_at", "2015-01-03 22:55:06.382579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 22:55:06.385402"], ["updated_at", "2015-01-03 22:55:06.385402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.387712"], ["updated_at", "2015-01-03 22:55:06.387712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 22:55:06.390398"], ["updated_at", "2015-01-03 22:55:06.390398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 3], ["published_at", "2015-01-03 22:55:06.391547"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.392756"], ["updated_at", "2015-01-03 22:55:06.392756"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 22:55:06.396018"], ["updated_at", "2015-01-03 22:55:06.396018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-03 22:55:06.398723"], ["updated_at", "2015-01-03 22:55:06.398723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.401021"], ["updated_at", "2015-01-03 22:55:06.401021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 22:55:06.403591"], ["updated_at", "2015-01-03 22:55:06.403591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 3], ["published_at", "2015-01-03 22:55:06.404751"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.405948"], ["updated_at", "2015-01-03 22:55:06.405948"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-03 22:55:06.409191"], ["updated_at", "2015-01-03 22:55:06.409191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-03 22:55:06.411523"], ["updated_at", "2015-01-03 22:55:06.411523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.413855"], ["updated_at", "2015-01-03 22:55:06.413855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 22:55:06.416945"], ["updated_at", "2015-01-03 22:55:06.416945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 3], ["published_at", "2015-01-03 22:55:06.418271"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.419576"], ["updated_at", "2015-01-03 22:55:06.419576"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 22:55:06.424381"], ["updated_at", "2015-01-03 22:55:06.424381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 22:55:06.426845"], ["updated_at", "2015-01-03 22:55:06.426845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.428810"], ["updated_at", "2015-01-03 22:55:06.428810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 22:55:06.435749"], ["updated_at", "2015-01-03 22:55:06.435749"]]  (32.7ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 1], ["published_at", "2015-01-03 22:55:06.470518"], ["state", "published"], ["created_at", "2015-01-03 22:55:06.472938"], ["updated_at", "2015-01-03 22:55:06.472938"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (34.7ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.515122"], ["updated_at", "2015-01-03 22:55:06.515122"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (31.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:06 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.1ms) 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 (12.1ms) Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 0.7ms)  (32.4ms) DELETE FROM "proclaim_posts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (44.6ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.7ms) DELETE FROM sqlite_sequence where name = 'users';  (32.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.2ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-03 22:55:07.055145"], ["updated_at", "2015-01-03 22:55:07.055145"]]  (43.7ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 1], ["published_at", "2015-01-03 22:55:07.102279"], ["state", "published"], ["created_at", "2015-01-03 22:55:07.106829"], ["updated_at", "2015-01-03 22:55:07.106829"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author38"], ["body", "body37"], ["post_id", 1], ["created_at", "2015-01-03 22:55:07.149260"], ["updated_at", "2015-01-03 22:55:07.149260"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (33.3ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author39"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-03 22:55:07.190841"], ["updated_at", "2015-01-03 22:55:07.190841"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (40.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:07 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) 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.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.3ms) Proclaim::Comment Exists (0.2ms) 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 (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.3ms) 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 (21.8ms) Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.7ms)  (40.2ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.4ms) DELETE FROM sqlite_sequence where name = 'users';  (41.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.2ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 22:55:07.956553"], ["updated_at", "2015-01-03 22:55:07.956553"]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 22:55:07.987928"], ["updated_at", "2015-01-03 22:55:07.987928"]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 2], ["published_at", "2015-01-03 22:55:08.016418"], ["state", "published"], ["created_at", "2015-01-03 22:55:08.018235"], ["updated_at", "2015-01-03 22:55:08.018235"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (28.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body39"], ["post_id", 1], ["created_at", "2015-01-03 22:55:08.050626"], ["updated_at", "2015-01-03 22:55:08.050626"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (32.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author41"], ["body", "body40"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:08.092725"], ["updated_at", "2015-01-03 22:55:08.092725"]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (30.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:08 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.2ms) Proclaim::Comment Exists (0.1ms) 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.8ms) 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/_comment.html.erb (9.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (33.4ms) Completed 200 OK in 37ms (Views: 34.2ms | ActiveRecord: 1.0ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 17:55:08 -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"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (3.2ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:55:08.785184"], ["id", 1]]  (55.1ms) commit transaction Proclaim::Comment Load (0.5ms) 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]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) 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 (5.2ms) 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 (16.5ms) Proclaim::Comment Exists (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.3ms) Completed 200 OK in 109ms (Views: 1.2ms | ActiveRecord: 59.9ms)  (43.0ms) DELETE FROM "proclaim_posts";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (29.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'users';  (34.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 22:55:09.474871"], ["updated_at", "2015-01-03 22:55:09.474871"]]  (32.5ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 1], ["published_at", "2015-01-03 22:55:09.513526"], ["state", "published"], ["created_at", "2015-01-03 22:55:09.518280"], ["updated_at", "2015-01-03 22:55:09.518280"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.5ms) commit transaction  (0.3ms) begin transaction SQL (1.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author42"], ["body", "body41"], ["post_id", 1], ["created_at", "2015-01-03 22:55:09.563040"], ["updated_at", "2015-01-03 22:55:09.563040"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (37.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:09 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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 (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.8ms) Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:10 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.5ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (49.6ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (42.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.7ms) DELETE FROM sqlite_sequence where name = 'users';  (41.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (41.4ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.3ms) begin transaction SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-03 22:55:10.701654"], ["updated_at", "2015-01-03 22:55:10.701654"]]  (35.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 1], ["published_at", "2015-01-03 22:55:10.742569"], ["state", "published"], ["created_at", "2015-01-03 22:55:10.745811"], ["updated_at", "2015-01-03 22:55:10.745811"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:10 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.4ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:11 -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"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 0.1ms)  (69.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (49.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.7ms) DELETE FROM sqlite_sequence where name = 'users';  (34.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-03 22:55:11.740528"], ["updated_at", "2015-01-03 22:55:11.740528"]]  (34.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 22:55:11.778888"], ["updated_at", "2015-01-03 22:55:11.778888"]]  (42.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 2], ["published_at", "2015-01-03 22:55:11.823609"], ["state", "published"], ["created_at", "2015-01-03 22:55:11.826219"], ["updated_at", "2015-01-03 22:55:11.826219"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.3ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author43"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-03 22:55:11.879500"], ["updated_at", "2015-01-03 22:55:11.879500"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (38.2ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author44"], ["body", "body43"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:11.928652"], ["updated_at", "2015-01-03 22:55:11.928652"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (51.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:12 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.1ms) Proclaim::Comment Exists (0.1ms) 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.1ms) 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 (6.9ms) 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 (25.7ms) Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 1.1ms) Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-03 17:55:12 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:55:12.675166"], ["id", 2]]  (79.1ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (11.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (25.0ms) Completed 200 OK in 124ms (Views: 0.7ms | ActiveRecord: 80.5ms)  (60.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (42.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.4ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'users';  (30.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.6ms) DELETE FROM "proclaim_images";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-03 22:55:13.389905"], ["updated_at", "2015-01-03 22:55:13.389905"]]  (48.3ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 1], ["published_at", "2015-01-03 22:55:13.441606"], ["state", "published"], ["created_at", "2015-01-03 22:55:13.443993"], ["updated_at", "2015-01-03 22:55:13.443993"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.6ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author45"], ["body", "body44"], ["post_id", 1], ["created_at", "2015-01-03 22:55:13.484026"], ["updated_at", "2015-01-03 22:55:13.484026"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (35.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:13 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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 (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 (11.2ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:14 -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"=>"4", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:14.324714"], ["updated_at", "2015-01-03 22:55:14.324714"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (31.3ms) commit transaction Proclaim::Comment Load (0.2ms) 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", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (6.1ms) Completed 200 OK in 57ms (Views: 0.5ms | ActiveRecord: 34.1ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:15 -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"=>"4", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.7ms) 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-03 22:55:15.271889"], ["updated_at", "2015-01-03 22:55:15.271889"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (43.3ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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.9ms) Completed 200 OK in 72ms (Views: 0.4ms | ActiveRecord: 45.9ms)  (46.2ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (27.6ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.7ms) DELETE FROM sqlite_sequence where name = 'users';  (34.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (45.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 22:55:15.878200"], ["updated_at", "2015-01-03 22:55:15.878200"]]  (41.4ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 1], ["published_at", "2015-01-03 22:55:15.923122"], ["state", "published"], ["created_at", "2015-01-03 22:55:15.924627"], ["updated_at", "2015-01-03 22:55:15.924627"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.8ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body45"], ["post_id", 1], ["created_at", "2015-01-03 22:55:15.972124"], ["updated_at", "2015-01-03 22:55:15.972124"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (36.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:16 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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/_comment.html.erb (5.2ms) 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 (13.5ms) Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 0.8ms)  (39.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (48.2ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (27.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.6ms) DELETE FROM sqlite_sequence where name = 'users';  (32.2ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (29.2ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 22:55:16.549275"], ["updated_at", "2015-01-03 22:55:16.549275"]]  (44.1ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 1], ["published_at", "2015-01-03 22:55:16.598430"], ["state", "published"], ["created_at", "2015-01-03 22:55:16.602823"], ["updated_at", "2015-01-03 22:55:16.602823"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:16 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) 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 (6.2ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:17 -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"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-03 22:55:17.252665"], ["updated_at", "2015-01-03 22:55:17.252665"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (50.4ms) commit transaction Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.2ms) 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 (6.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (18.8ms) Completed 200 OK in 93ms (Views: 1.4ms | ActiveRecord: 52.5ms)  (40.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (26.3ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.1ms) DELETE FROM sqlite_sequence where name = 'users';  (35.3ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (29.4ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 22:55:17.813306"], ["updated_at", "2015-01-03 22:55:17.813306"]]  (36.8ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 1], ["published_at", "2015-01-03 22:55:17.852214"], ["state", "published"], ["created_at", "2015-01-03 22:55:17.855620"], ["updated_at", "2015-01-03 22:55:17.855620"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (44.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:17 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) 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 (9.3ms) Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.9ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 17:55:18 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (56.0ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.6ms) DELETE FROM sqlite_sequence where name = 'users';  (43.4ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (61.5ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 22:55:18.818460"], ["updated_at", "2015-01-03 22:55:18.818460"]]  (59.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 22:55:18.887288"], ["updated_at", "2015-01-03 22:55:18.887288"]]  (40.8ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 2], ["published_at", "2015-01-03 22:55:18.933301"], ["state", "published"], ["created_at", "2015-01-03 22:55:18.937756"], ["updated_at", "2015-01-03 22:55:18.937756"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (41.8ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-03 22:55:18.990783"], ["updated_at", "2015-01-03 22:55:18.990783"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (47.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:19 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.5ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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 (8.2ms) 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 (15.4ms) Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 0.8ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 17:55:19 -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"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:55:19.556529"], ["id", 1]]  (52.1ms) commit transaction Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) 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 (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.7ms) Completed 200 OK in 79ms (Views: 1.2ms | ActiveRecord: 53.2ms)  (31.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.8ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.8ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.8ms) DELETE FROM sqlite_sequence where name = 'users';  (42.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 22:55:20.105711"], ["updated_at", "2015-01-03 22:55:20.105711"]]  (38.5ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 22:55:20.152455"], ["updated_at", "2015-01-03 22:55:20.152455"]]  (37.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 2], ["published_at", "2015-01-03 22:55:20.193059"], ["state", "published"], ["created_at", "2015-01-03 22:55:20.194780"], ["updated_at", "2015-01-03 22:55:20.194780"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (47.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author48"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-03 22:55:20.247683"], ["updated_at", "2015-01-03 22:55:20.247683"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (31.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:20 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Exists (0.1ms) 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.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 (9.6ms) 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 (16.1ms) Completed 200 OK in 22ms (Views: 17.8ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 17:55:21 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (1.5ms) 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  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.7ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (28.6ms) commit transaction Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 31.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (21.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (19.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (17.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (41.4ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.1ms) DELETE FROM sqlite_sequence where name = 'users';  (31.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 22:55:21.970078"], ["updated_at", "2015-01-03 22:55:21.970078"]]  (33.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 22:55:22.013915"], ["updated_at", "2015-01-03 22:55:22.013915"]]  (38.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 2], ["published_at", "2015-01-03 22:55:22.056682"], ["state", "published"], ["created_at", "2015-01-03 22:55:22.061185"], ["updated_at", "2015-01-03 22:55:22.061185"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (31.5ms) commit transaction  (0.3ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-03 22:55:22.098773"], ["updated_at", "2015-01-03 22:55:22.098773"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.4ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author50"], ["body", "body49"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:22.158913"], ["updated_at", "2015-01-03 22:55:22.158913"]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (50.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:22 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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.3ms) 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 (16.8ms) Proclaim::Comment Exists (0.1ms) 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.6ms) 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 (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (30.9ms) Completed 200 OK in 36ms (Views: 32.1ms | ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 17:55:22 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.9ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.5ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (34.1ms) commit transaction Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 36.6ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (33.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (27.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.1ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.2ms) DELETE FROM sqlite_sequence where name = 'users';  (33.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (43.4ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 22:55:23.990657"], ["updated_at", "2015-01-03 22:55:23.990657"]]  (37.0ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 22:55:24.033188"], ["updated_at", "2015-01-03 22:55:24.033188"]]  (36.9ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 2], ["published_at", "2015-01-03 22:55:24.075324"], ["state", "published"], ["created_at", "2015-01-03 22:55:24.079892"], ["updated_at", "2015-01-03 22:55:24.079892"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (51.8ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author51"], ["body", "body50"], ["post_id", 1], ["created_at", "2015-01-03 22:55:24.143196"], ["updated_at", "2015-01-03 22:55:24.143196"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.8ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author52"], ["body", "body51"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:24.200900"], ["updated_at", "2015-01-03 22:55:24.200900"]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) 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  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (40.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:55:24 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) 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]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) 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/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.1ms) Proclaim::Comment Exists (0.1ms) 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.9ms) 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 (6.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 (25.0ms) Completed 200 OK in 30ms (Views: 26.0ms | ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-03 17:55:24 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction  (1.0ms) 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 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.6ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (51.0ms) commit transaction Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 53.2ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (30.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (20.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (41.6ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.7ms) DELETE FROM sqlite_sequence where name = 'users';  (33.3ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (37.0ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';