[1m[36m (47.9ms)[0m [1mCREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (35.2ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (32.7ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35m (40.6ms)[0m CREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (35.4ms)[0m [1mCREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")[0m
[1m[35m (36.6ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (40.5ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35m (41.1ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (40.8ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (33.5ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35m (36.5ms)[0m CREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (41.2ms)[0m [1mCREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[1m[36m (37.0ms)[0m [1mCREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")[0m
[1m[35m (40.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (42.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (46.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (34.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')
[1m[36m (42.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141117214323')[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateProclaimPosts (20141108222616)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateProclaimPosts (20141108222616)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
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)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (36.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.3ms)[0m select sqlite_version(*)
[1m[36m (35.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateProclaimPosts (20141108222616)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]
[1m[36m (28.1ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimComments (20141114235359)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (1.2ms)[0m [1mCREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114235359"]]
[1m[35m (36.1ms)[0m commit transaction
Migrating to CreateProclaimCommentHierarchies (20141115022230)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (1.5ms)[0m CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.4ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]
[1m[36m (41.8ms)[0m [1mcommit transaction[0m
Migrating to CreateUsers (20141117214323)
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (1.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]
[1m[36m (40.7ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimSubscriptions (20141210234057)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.7ms)[0m [1mCREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[0m
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141210234057"]]
[1m[35m (30.8ms)[0m commit transaction
Migrating to CreateProclaimImages (20141222224905)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.8ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]
[1m[36m (49.9ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='comment_desc_idx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_desc_idx' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated
-------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["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] [1m[35mUser Load (0.2ms)[0m 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 |
Written on January 03, 2015 at 03:21 PM UTC by first_name1 last_name1
|
|
----==_mimepart_54a80901a88ab_c4ba9132089a--
[ActiveJob] [ActionMailer::DeliveryJob] [faa03214-6624-4463-9d0b-03eefb2e9703] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.47ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription
-------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 15:21:37.699721"], ["updated_at", "2015-01-03 15:21:37.699721"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "email2@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made
-------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 15:21:37.751147"], ["updated_at", "2015-01-03 15:21:37.751147"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email3@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Comment Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] [1m[35mProclaim::Post Load (0.1ms)[0m 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 |
Written on January 03, 2015 at 03:21 PM UTC by author1
|
|
----==_mimepart_54a80901cf07a_c4ba9132014e7--
[ActiveJob] [ActionMailer::DeliveryJob] [5f4dc9da-b56d-45ce-b69e-e4bc2e077ac8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.11ms
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 15:21:37.868834"], ["updated_at", "2015-01-03 15:21:37.868834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 15:21:37.910937"], ["updated_at", "2015-01-03 15:21:37.910937"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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 |
Written on January 03, 2015 at 03:21 PM UTC by author2
|
|
----==_mimepart_54a80901e55cc_c4ba913201860--
[ActiveJob] [ActionMailer::DeliveryJob] [7e30071f-75cf-4ec0-89f5-a8b9b236a101] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.25ms
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m 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]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published
-----------------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 15:21:37.987067"], ["updated_at", "2015-01-03 15:21:37.987067"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title5"], ["body", "body5"], ["author_id", 1], ["created_at", "2015-01-03 15:21:37.989540"], ["updated_at", "2015-01-03 15:21:37.989540"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-03 15:21:37.991193"], ["state", "published"], ["updated_at", "2015-01-03 15:21:37.992305"], ["id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mUser Load (0.0ms)[0m 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 |
Written on January 03, 2015 at 03:21 PM UTC by first_name5 last_name5
|
|
----==_mimepart_54a8090240ec_c4ba913202256--
[ActiveJob] [ActionMailer::DeliveryJob] [26af9946-3774-4659-a28d-e8c550620874] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.39ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published
-----------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 15:21:38.073511"], ["updated_at", "2015-01-03 15:21:38.073511"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 03:21 PM UTC by first_name6 last_name6
|
|
----==_mimepart_54a80902192e8_c4ba913202630--
[ActiveJob] [ActionMailer::DeliveryJob] [9f61be0b-1b30-40e0-aec7-5ac15d78a99a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 25.27ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_comment_notification_email
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 15:21:38.112658"], ["updated_at", "2015-01-03 15:21:38.112658"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 15:21:38.158351"], ["updated_at", "2015-01-03 15:21:38.158351"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title8"], ["body", "body8"], ["author_id", 2], ["created_at", "2015-01-03 15:21:38.160686"], ["updated_at", "2015-01-03 15:21:38.160686"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
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
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Proclaim::SubscriptionMailerTest: test_welcome_email
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_post_notification_email
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 15:21:38.297965"], ["updated_at", "2015-01-03 15:21:38.297965"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 03:21 PM UTC by first_name9 last_name9
|
|
----==_mimepart_54a809024fc32_c4ba91320368a--
[ActiveJob] [ActionMailer::DeliveryJob] [74e615ef-111a-46e6-a176-1e53b78fcdfc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.88ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (1.3ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 20.0ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs
------------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 15:21:38.396282"], ["updated_at", "2015-01-03 15:21:38.396282"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["created_at", "2015-01-03 15:21:38.398684"], ["updated_at", "2015-01-03 15:21:38.398684"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:38.403277"], ["updated_at", "2015-01-03 15:21:38.403277"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "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]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mUser Load (0.0ms)[0m 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 |
|
Written on January 03, 2015 at 03:21 PM UTC by first_name10 last_name10
|
|
----==_mimepart_54a809026a140_c4ba913204117--
[ActiveJob] [ActionMailer::DeliveryJob] [c0839dde-925e-44c7-8153-87516e0322ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.27ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.4ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 15:21:38.465609"], ["updated_at", "2015-01-03 15:21:38.465609"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:38 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
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)
[1m[35m (0.6ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
PostTest: test_index_should_give_option_to_delete_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 15:21:39.499000"], ["updated_at", "2015-01-03 15:21:39.499000"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 15:21:39.502228"], ["updated_at", "2015-01-03 15:21:39.502228"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.5ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
PostTest: test_index_should_show_excerpts
-----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 15:21:39.838907"], ["updated_at", "2015-01-03 15:21:39.838907"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 15:21:39.845764"], ["updated_at", "2015-01-03 15:21:39.845764"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.2ms)
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------
PostTest: test_index_should_show_post_titles
--------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 15:21:39.866691"], ["updated_at", "2015-01-03 15:21:39.866691"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 15:21:39.873462"], ["updated_at", "2015-01-03 15:21:39.873462"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.9ms)
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in
-------------------------------------------------------------------------------
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
PostTest: test_show_should_show_author_name
-------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 15:21:39.905649"], ["updated_at", "2015-01-03 15:21:39.905649"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 15:21:39.968992"], ["updated_at", "2015-01-03 15:21:39.968992"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:39 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
PostTest: test_image_should_have_relative_source_path
-----------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 15:21:39.988020"], ["updated_at", "2015-01-03 15:21:39.988020"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 15:21:39.990978"], ["updated_at", "2015-01-03 15:21:39.990978"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title19"], ["body", "body17"], ["author_id", 2], ["created_at", "2015-01-03 15:21:39.993380"], ["updated_at", "2015-01-03 15:21:39.993380"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:39.998455"], ["updated_at", "2015-01-03 15:21:39.998455"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-03 15:21:40.002337"], ["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
PostTest: test_index_should_give_option_to_edit_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 15:21:40.008502"], ["updated_at", "2015-01-03 15:21:40.008502"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 15:21:40.011217"], ["updated_at", "2015-01-03 15:21:40.011217"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.3ms)
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
PostTest: test_index_should_give_option_to_create_new_post_if_logged_in
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 15:21:40.030284"], ["updated_at", "2015-01-03 15:21:40.030284"]]
[1m[35m (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------
PostTest: test_index_should_show_more_link
------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 15:21:40.045204"], ["updated_at", "2015-01-03 15:21:40.045204"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 15:21:40.052050"], ["updated_at", "2015-01-03 15:21:40.052050"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.8ms)
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------
PostTest: test_index_should_show_authors
----------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 15:21:40.073797"], ["updated_at", "2015-01-03 15:21:40.073797"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 15:21:40.080307"], ["updated_at", "2015-01-03 15:21:40.080307"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 10:21:40 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.9ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 15:21:40.102966"], ["updated_at", "2015-01-03 15:21:40.102966"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 15:21:40.106492"], ["updated_at", "2015-01-03 15:21:40.106492"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title25"], ["body", "body21"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.108701"], ["updated_at", "2015-01-03 15:21:40.108701"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 15:21:40.133604"], ["updated_at", "2015-01-03 15:21:40.133604"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 15:21:40.137200"], ["updated_at", "2015-01-03 15:21:40.137200"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title26"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.139435"], ["updated_at", "2015-01-03 15:21:40.139435"]]
[1m[35m (0.1ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["published_at", "2015-01-03 15:21:40.145969"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-03 15:21:40.148915"], ["id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in
-----------------------------------------------------------------------
Processing by Proclaim::PostsController#new as HTML
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 15:21:40.165666"], ["updated_at", "2015-01-03 15:21:40.165666"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 15:21:40.169806"], ["updated_at", "2015-01-03 15:21:40.169806"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title27"], ["body", "body23"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.171983"], ["updated_at", "2015-01-03 15:21:40.171983"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (7.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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 15:21:40.192451"], ["updated_at", "2015-01-03 15:21:40.192451"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 15:21:40.211178"], ["updated_at", "2015-01-03 15:21:40.211178"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title29"], ["body", "body25"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.213656"], ["updated_at", "2015-01-03 15:21:40.213656"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_if_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 15:21:40.219618"], ["updated_at", "2015-01-03 15:21:40.219618"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 15:21:40.222864"], ["updated_at", "2015-01-03 15:21:40.222864"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title30"], ["body", "body26"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.224981"], ["updated_at", "2015-01-03 15:21:40.224981"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 15:21:40.227426"], ["updated_at", "2015-01-03 15:21:40.227426"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (16.1ms)
Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 15:21:40.255249"], ["updated_at", "2015-01-03 15:21:40.255249"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title32"], ["body", "body28"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.257941"], ["updated_at", "2015-01-03 15:21:40.257941"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 15:21:40.268902"], ["updated_at", "2015-01-03 15:21:40.268902"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 15:21:40.272897"], ["updated_at", "2015-01-03 15:21:40.272897"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 15:21:40.291231"], ["updated_at", "2015-01-03 15:21:40.291231"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body30"], ["author_id", 3], ["created_at", "2015-01-03 15:21:40.293491"], ["updated_at", "2015-01-03 15:21:40.293491"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 15:21:40.306324"], ["updated_at", "2015-01-03 15:21:40.306324"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 15:21:40.309812"], ["updated_at", "2015-01-03 15:21:40.309812"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title35"], ["body", "body31"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.311977"], ["updated_at", "2015-01-03 15:21:40.311977"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title35"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:40.324187"], ["updated_at", "2015-01-03 15:21:40.324187"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 15:21:40.328239"], ["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 13ms (ActiveRecord: 0.7ms)
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 15:21:40.339332"], ["updated_at", "2015-01-03 15:21:40.339332"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 15:21:40.342711"], ["updated_at", "2015-01-03 15:21:40.342711"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body32", "title"=>"title36"}, "publish"=>"true"}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 15:21:40.361860"], ["updated_at", "2015-01-03 15:21:40.361860"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 15:21:40.365853"], ["updated_at", "2015-01-03 15:21:40.365853"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title37"}}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:40.379917"], ["updated_at", "2015-01-03 15:21:40.379917"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 15:21:40.421590"], ["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 53ms (ActiveRecord: 0.9ms)
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.0ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_new_if_logged_in
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 15:21:40.431381"], ["updated_at", "2015-01-03 15:21:40.431381"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#new as HTML
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 15:21:40.450002"], ["updated_at", "2015-01-03 15:21:40.450002"]]
[1m[35m (1.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body34", "title"=>"title38"}}
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in
------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 15:21:40.468767"], ["updated_at", "2015-01-03 15:21:40.468767"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 15:21:40.481631"], ["updated_at", "2015-01-03 15:21:40.481631"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 15:21:40.485365"], ["updated_at", "2015-01-03 15:21:40.485365"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body36", "title"=>"title40"}}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_update_post_if_logged_in
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 15:21:40.505548"], ["updated_at", "2015-01-03 15:21:40.505548"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 15:21:40.509364"], ["updated_at", "2015-01-03 15:21:40.509364"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title41"], ["body", "body37"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.511594"], ["updated_at", "2015-01-03 15:21:40.511594"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body37", "title"=>"title41"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in
--------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 15:21:40.529497"], ["updated_at", "2015-01-03 15:21:40.529497"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body38"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.532186"], ["updated_at", "2015-01-03 15:21:40.532186"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-03 15:21:40.535100"], ["updated_at", "2015-01-03 15:21:40.535100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.6ms)
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 15:21:40.552517"], ["updated_at", "2015-01-03 15:21:40.552517"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title44"], ["body", "body40"], ["author_id", 1], ["created_at", "2015-01-03 15:21:40.555182"], ["updated_at", "2015-01-03 15:21:40.555182"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body40", "title"=>"title44"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------
PostPolicyTest: test_post_update
--------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 15:21:40.566583"], ["updated_at", "2015-01-03 15:21:40.566583"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 15:21:40.569638"], ["updated_at", "2015-01-03 15:21:40.569638"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body41"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.572053"], ["updated_at", "2015-01-03 15:21:40.572053"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 15:21:40.574702"], ["updated_at", "2015-01-03 15:21:40.574702"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------
PostPolicyTest: test_post_scope
-------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-03 15:21:40.581132"], ["updated_at", "2015-01-03 15:21:40.581132"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-03 15:21:40.584073"], ["updated_at", "2015-01-03 15:21:40.584073"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title47"], ["body", "body43"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.586852"], ["updated_at", "2015-01-03 15:21:40.586852"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 15:21:40.589623"], ["updated_at", "2015-01-03 15:21:40.589623"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------
PostPolicyTest: test_post_create
--------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-03 15:21:40.597698"], ["updated_at", "2015-01-03 15:21:40.597698"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 15:21:40.600065"], ["updated_at", "2015-01-03 15:21:40.600065"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body45"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.602246"], ["updated_at", "2015-01-03 15:21:40.602246"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------
PostPolicyTest: test_post_show
------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 15:21:40.605021"], ["updated_at", "2015-01-03 15:21:40.605021"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-03 15:21:40.607391"], ["updated_at", "2015-01-03 15:21:40.607391"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title50"], ["body", "body46"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.609602"], ["updated_at", "2015-01-03 15:21:40.609602"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 15:21:40.612551"], ["updated_at", "2015-01-03 15:21:40.612551"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------
PostPolicyTest: test_post_destroy
---------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 15:21:40.619069"], ["updated_at", "2015-01-03 15:21:40.619069"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 15:21:40.622342"], ["updated_at", "2015-01-03 15:21:40.622342"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title52"], ["body", "body48"], ["author_id", 2], ["created_at", "2015-01-03 15:21:40.624469"], ["updated_at", "2015-01-03 15:21:40.624469"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-03 15:21:40.627075"], ["updated_at", "2015-01-03 15:21:40.627075"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
--------------------------------------------------
PostFormTest: test_should_show_error_without_title
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 15:21:40.703171"], ["updated_at", "2015-01-03 15:21:40.703171"]]
[1m[36m (51.6ms)[0m [1mcommit transaction[0m
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
[1m[35m (0.4ms)[0m 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (51.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (32.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (29.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (28.7ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.2ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (40.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
PostFormTest: test_should_create_post
-------------------------------------
[1m[35m (1.3ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 15:21:46.505403"], ["updated_at", "2015-01-03 15:21:46.505403"]]
[1m[35m (46.8ms)[0m 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (48.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (38.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (24.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (23.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (31.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (29.2ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (22.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (19.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (24.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------
PostFormTest: test_should_show_error_without_body
-------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-03 15:21:47.838862"], ["updated_at", "2015-01-03 15:21:47.838862"]]
[1m[36m (30.9ms)[0m [1mcommit transaction[0m
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)
[1m[35m (0.4ms)[0m 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (29.8ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (38.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (36.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (38.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (37.5ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (30.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------
PostFormTest: test_should_delete_saved_image
--------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 15:21:48.735726"], ["updated_at", "2015-01-03 15:21:48.735726"]]
[1m[35m (39.7ms)[0m commit transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 15:21:48.783508"], ["updated_at", "2015-01-03 15:21:48.783508"]]
[1m[36m (36.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (34.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36m (33.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", "test
"], ["updated_at", "2015-01-03 15:21:48.916413"], ["id", 1]]
[1m[35m (32.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.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"}
[1m[36mProclaim::Image Load (0.2ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Image Load (0.2ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1[0m [["post_id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (52.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (44.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (46.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (44.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (42.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (35.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (28.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (40.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (45.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
PostFormTest: test_should_delete_cached_image
---------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 15:21:50.160647"], ["updated_at", "2015-01-03 15:21:50.160647"]]
[1m[35m (39.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 15:21:50.213745"], ["updated_at", "2015-01-03 15:21:50.213745"]]
[1m[36m (34.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title55"], ["body", ""], ["author_id", 2], ["created_at", "2015-01-03 15:21:50.251054"], ["updated_at", "2015-01-03 15:21:50.251054"]]
[1m[35m (36.4ms)[0m 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"}
[1m[36mProclaim::Post Load (0.7ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (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)
[1m[36m (35.5ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (39.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (33.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (30.9ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (32.5ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (26.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (30.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (28.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------------------------------
PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image
--------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m 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"]]
[1m[36m (28.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 15:21:50.975505"], ["updated_at", "2015-01-03 15:21:50.975505"]]
[1m[35m (25.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m 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"]]
[1m[36m (25.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:21:51.042733"], ["updated_at", "2015-01-03 15:21:51.042733"]]
[1m[35m (34.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 15:21:51.087323"], ["id", 1]]
[1m[36m (34.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (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"}
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (38.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (33.2ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (28.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (36.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (40.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (39.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------
Proclaim::CommentTest: test_ensure_factory_is_good
--------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 15:21:51.988329"], ["updated_at", "2015-01-03 15:21:51.988329"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title57"], ["body", "body52"], ["author_id", 1], ["created_at", "2015-01-03 15:21:51.991765"], ["updated_at", "2015-01-03 15:21:51.991765"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Proclaim::CommentTest: test_ensure_body_is_required
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 15:21:52.001301"], ["updated_at", "2015-01-03 15:21:52.001301"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title58"], ["body", "body53"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.003788"], ["updated_at", "2015-01-03 15:21:52.003788"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Proclaim::CommentTest: test_ensure_post_is_required
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy
------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email12@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 43ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in
-----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 15:21:52.104812"], ["updated_at", "2015-01-03 15:21:52.104812"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email13@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 40ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription
------------------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription
-----------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (6.5ms)
Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms)
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (3.5ms)
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 15:21:52.346687"], ["updated_at", "2015-01-03 15:21:52.346687"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 15:21:52.350979"], ["updated_at", "2015-01-03 15:21:52.350979"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title59"], ["body", "body54"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.353283"], ["updated_at", "2015-01-03 15:21:52.353283"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author8", "body"=>"body7", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 15:21:52.410349"], ["updated_at", "2015-01-03 15:21:52.410349"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author9", "body"=>"body8", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 15:21:52.441797"], ["updated_at", "2015-01-03 15:21:52.441797"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title61"], ["body", "body56"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.444368"], ["updated_at", "2015-01-03 15:21:52.444368"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author10"], ["body", "body9"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.446622"], ["updated_at", "2015-01-03 15:21:52.446622"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author11", "body"=>"body10", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 15:21:52.462350"], ["updated_at", "2015-01-03 15:21:52.462350"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
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}}
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[35m (0.1ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 3]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 15:21:52.499770"], ["updated_at", "2015-01-03 15:21:52.499770"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title63"], ["body", "body58"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.502317"], ["updated_at", "2015-01-03 15:21:52.502317"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author14", "body"=>"body13", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 15:21:52.512283"], ["updated_at", "2015-01-03 15:21:52.512283"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author15", "body"=>"body14", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 15:21:52.539616"], ["updated_at", "2015-01-03 15:21:52.539616"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m 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}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 15:21:52.562157"], ["updated_at", "2015-01-03 15:21:52.562157"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 15:21:52.566325"], ["updated_at", "2015-01-03 15:21:52.566325"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title66"], ["body", "body61"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.568692"], ["updated_at", "2015-01-03 15:21:52.568692"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author18"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.571457"], ["updated_at", "2015-01-03 15:21:52.571457"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 15:21:52.586376"], ["updated_at", "2015-01-03 15:21:52.586376"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 15:21:52.590807"], ["updated_at", "2015-01-03 15:21:52.590807"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body62"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.593213"], ["updated_at", "2015-01-03 15:21:52.593213"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author19"], ["body", "body18"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.595556"], ["updated_at", "2015-01-03 15:21:52.595556"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author19", "body"=>"body18", "post_id"=>1}, "id"=>"1"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 15:21:52.624448"], ["updated_at", "2015-01-03 15:21:52.624448"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 15:21:52.628234"], ["updated_at", "2015-01-03 15:21:52.628234"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body63"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.630357"], ["updated_at", "2015-01-03 15:21:52.630357"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author20"], ["body", "body19"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.632548"], ["updated_at", "2015-01-03 15:21:52.632548"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m 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}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 15:21:52.672519"], ["updated_at", "2015-01-03 15:21:52.672519"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author23", "body"=>"body22", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35m (0.2ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 15:21:52.757132"], ["updated_at", "2015-01-03 15:21:52.757132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title70"], ["body", "body65"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.762063"], ["updated_at", "2015-01-03 15:21:52.762063"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.764758"], ["updated_at", "2015-01-03 15:21:52.764758"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author24", "body"=>"body23", "post_id"=>1}, "id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 15:21:52.778169"], ["updated_at", "2015-01-03 15:21:52.778169"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title71"], ["body", "body66"], ["author_id", 1], ["created_at", "2015-01-03 15:21:52.781268"], ["updated_at", "2015-01-03 15:21:52.781268"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author25"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 15:21:52.784108"], ["updated_at", "2015-01-03 15:21:52.784108"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 15:21:52.797711"], ["updated_at", "2015-01-03 15:21:52.797711"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author26", "body"=>"body25", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------
SubscriptionPolicyTest: test_subscription_update
------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 15:21:52.814780"], ["updated_at", "2015-01-03 15:21:52.814780"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
SubscriptionPolicyTest: test_subscription_creation
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 15:21:52.855536"], ["updated_at", "2015-01-03 15:21:52.855536"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 15:21:52.858531"], ["updated_at", "2015-01-03 15:21:52.858531"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title73"], ["body", "body68"], ["author_id", 2], ["created_at", "2015-01-03 15:21:52.860644"], ["updated_at", "2015-01-03 15:21:52.860644"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 15:21:52.863686"], ["updated_at", "2015-01-03 15:21:52.863686"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 15:21:52.869789"], ["updated_at", "2015-01-03 15:21:52.869789"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title75"], ["body", "body70"], ["author_id", 4], ["created_at", "2015-01-03 15:21:52.871805"], ["updated_at", "2015-01-03 15:21:52.871805"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 15:21:52.875024"], ["updated_at", "2015-01-03 15:21:52.875024"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------
SubscriptionPolicyTest: test_subscription_destroy
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 15:21:52.881705"], ["updated_at", "2015-01-03 15:21:52.881705"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email25@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
SubscriptionPolicyTest: test_subscription_unsubscribe
-----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 15:21:52.921016"], ["updated_at", "2015-01-03 15:21:52.921016"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
SubscriptionPolicyTest: test_subscription_scope
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-03 15:21:52.961580"], ["updated_at", "2015-01-03 15:21:52.961580"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 15:21:53.038481"], ["updated_at", "2015-01-03 15:21:53.038481"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 15:21:53.042198"], ["updated_at", "2015-01-03 15:21:53.042198"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title78"], ["body", "body73"], ["author_id", 3], ["created_at", "2015-01-03 15:21:53.052127"], ["updated_at", "2015-01-03 15:21:53.052127"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 15:21:53.054916"], ["updated_at", "2015-01-03 15:21:53.054916"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 15:21:53.057623"], ["updated_at", "2015-01-03 15:21:53.057623"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title79"], ["body", "body74"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.059774"], ["updated_at", "2015-01-03 15:21:53.059774"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author29"], ["body", "body28"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.062017"], ["updated_at", "2015-01-03 15:21:53.062017"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 15:21:53.070267"], ["updated_at", "2015-01-03 15:21:53.070267"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title80"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-03 15:21:53.072418"], ["updated_at", "2015-01-03 15:21:53.072418"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-03 15:21:53.081094"], ["updated_at", "2015-01-03 15:21:53.081094"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 15:21:53.084324"], ["updated_at", "2015-01-03 15:21:53.084324"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title81"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.086636"], ["updated_at", "2015-01-03 15:21:53.086636"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author31"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-03 15:21:53.088838"], ["updated_at", "2015-01-03 15:21:53.088838"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 15:21:53.098578"], ["updated_at", "2015-01-03 15:21:53.098578"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title82"], ["body", "body77"], ["author_id", 2], ["created_at", "2015-01-03 15:21:53.101061"], ["updated_at", "2015-01-03 15:21:53.101061"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
-------------------------------------
CommentTest: test_delete_root_comment
-------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 15:21:53.111588"], ["updated_at", "2015-01-03 15:21:53.111588"]]
[1m[35m (17.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 15:21:53.135953"], ["updated_at", "2015-01-03 15:21:53.135953"]]
[1m[36m (25.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.7ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (40.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (33.4ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (1.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (29.8ms)[0m commit transaction
Completed 200 OK in 42ms (Views: 0.4ms | ActiveRecord: 32.0ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (50.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (31.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (32.4ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (28.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (33.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (44.0ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (42.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (31.9ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (51.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------
CommentTest: test_delete_parent_comment
---------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 15:21:55.116866"], ["updated_at", "2015-01-03 15:21:55.116866"]]
[1m[35m (40.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 15:21:55.163933"], ["updated_at", "2015-01-03 15:21:55.163933"]]
[1m[36m (46.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (47.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (43.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (41.9ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.5ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 10:21:56 -0500
Processing by Proclaim::CommentsController#destroy as JS
Parameters: {"id"=>"1"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.9ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mSQL (0.7ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (33.8ms)[0m commit transaction
Completed 200 OK in 56ms (Views: 0.2ms | ActiveRecord: 36.5ms)
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (34.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (18.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (23.4ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (28.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (25.4ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (24.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (29.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (43.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (33.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------
CommentTest: test_cancel_button_should_remove_errors
----------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 15:21:57.103412"], ["updated_at", "2015-01-03 15:21:57.103412"]]
[1m[35m (30.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (38.6ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 10:21:57 -0500
[1m[36m (42.9ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (36.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (47.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (46.7ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (41.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (37.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (4.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------
CommentTest: test_edit_root_comment
-----------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 15:21:58.207449"], ["updated_at", "2015-01-03 15:21:58.207449"]]
[1m[36m (50.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-03 15:21:58.265757"], ["updated_at", "2015-01-03 15:21:58.265757"]]
[1m[35m (41.2ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (41.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 15:21:58.368716"], ["updated_at", "2015-01-03 15:21:58.368716"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (40.9ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (1.2ms)[0m 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]]
[1m[36m (57.7ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.5ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (44.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (32.5ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (34.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (35.0ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (34.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (32.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------
CommentTest: test_leave_root_comment
------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-03 15:21:59.721456"], ["updated_at", "2015-01-03 15:21:59.721456"]]
[1m[36m (45.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (35.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:00.485346"], ["updated_at", "2015-01-03 15:22:00.485346"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (59.8ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (45.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (47.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (39.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (39.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (47.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (42.0ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (29.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (33.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (35.5ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------
CommentTest: test_root_comment_should_fail_if_spammy
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 15:22:01.091624"], ["updated_at", "2015-01-03 15:22:01.091624"]]
[1m[36m (35.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (36.5ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[35m (28.5ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (32.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (28.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (29.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (25.9ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.2ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
CommentTest: test_edit_parent_comment
-------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 15:22:02.232298"], ["updated_at", "2015-01-03 15:22:02.232298"]]
[1m[35m (41.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 15:22:02.283694"], ["updated_at", "2015-01-03 15:22:02.283694"]]
[1m[36m (37.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (45.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (32.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["author", "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"]]
[1m[35mSQL (1.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (48.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (1.2ms)[0m 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]]
[1m[36m (51.5ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (27.5ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (17.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (17.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (23.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (22.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (33.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (46.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (28.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------
CommentTest: test_delete_child_comment
--------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 15:22:03.782990"], ["updated_at", "2015-01-03 15:22:03.782990"]]
[1m[35m (36.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 15:22:03.823914"], ["updated_at", "2015-01-03 15:22:03.823914"]]
[1m[36m (34.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (32.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (52.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (49.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (1.3ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]
[1m[36m (44.1ms)[0m [1mcommit transaction[0m
Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 46.4ms)
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (26.4ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (16.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (16.8ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (27.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (16.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (14.9ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (34.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (32.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------------------------------------
CommentTest: test_should_not_have_option_to_edit_if_not_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 15:22:05.725843"], ["updated_at", "2015-01-03 15:22:05.725843"]]
[1m[36m (33.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (29.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (32.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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
[1m[35m (49.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (47.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (40.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (47.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (37.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (37.3ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (47.6ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (124.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------
CommentTest: test_edit_child_comment
------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 15:22:06.515967"], ["updated_at", "2015-01-03 15:22:06.515967"]]
[1m[35m (40.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 15:22:06.567136"], ["updated_at", "2015-01-03 15:22:06.567136"]]
[1m[36m (41.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (37.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.4ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (40.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["author", "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"]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (43.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 15:22:07.514366"], ["id", 2]]
[1m[35m (32.4ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.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)
[1m[36m (51.9ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (25.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (34.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (30.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (34.5ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (42.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (29.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
---------------------------------------------
CommentTest: test_reply_should_fail_if_spammy
---------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 15:22:08.177066"], ["updated_at", "2015-01-03 15:22:08.177066"]]
[1m[36m (28.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (33.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author44"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-03 15:22:08.251210"], ["updated_at", "2015-01-03 15:22:08.251210"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (29.9ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)
[1m[35m (63.8ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (28.8ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (26.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (28.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (24.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (27.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (35.9ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (32.6ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------------------
CommentTest: test_reply_forms_should_be_exclusive
-------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 15:22:09.294064"], ["updated_at", "2015-01-03 15:22:09.294064"]]
[1m[35m (31.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.4ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (36.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (42.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m 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"]]
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (38.6ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.3ms)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[36m (28.4ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (30.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (37.5ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (30.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (29.2ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (55.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (43.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (34.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------------------------
CommentTest: test_should_not_have_option_to_delete_if_not_logged_in
-------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-03 15:22:10.176064"], ["updated_at", "2015-01-03 15:22:10.176064"]]
[1m[36m (37.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (30.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (37.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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
[1m[35m (44.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (35.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (44.4ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (35.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (34.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.2ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------
CommentTest: test_leave_two_replies
-----------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 15:22:10.827773"], ["updated_at", "2015-01-03 15:22:10.827773"]]
[1m[35m (71.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (47.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (44.6ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.8ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (42.8ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[35m (0.2ms)[0m 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
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (62.3ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 3]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 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)
[1m[36m (38.5ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (31.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (32.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (44.9ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (44.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (40.0ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (36.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Proclaim::SubscriptionTest: test_subscriptions_should_be_unique
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body92"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.288043"], ["updated_at", "2015-01-03 15:22:13.288043"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-03 15:22:13.342127"], ["updated_at", "2015-01-03 15:22:13.342127"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Proclaim::ImageTest: test_ensure_post_validity_is_verified
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::ImageTest: test_ensure_post_is_required
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_required
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 15:22:13.517021"], ["updated_at", "2015-01-03 15:22:13.517021"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body94"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.519680"], ["updated_at", "2015-01-03 15:22:13.519680"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------
Proclaim::ImageTest: test_ensure_factory_is_good
------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-03 15:22:13.524953"], ["updated_at", "2015-01-03 15:22:13.524953"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", "body95"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.527705"], ["updated_at", "2015-01-03 15:22:13.527705"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:13.533258"], ["updated_at", "2015-01-03 15:22:13.533258"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly
------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-03 15:22:13.539128"], ["updated_at", "2015-01-03 15:22:13.539128"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title101"], ["body", "body96"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.541701"], ["updated_at", "2015-01-03 15:22:13.541701"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Proclaim::InstallGeneratorTest: test_generator_runs_without_errors
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_date_requirement
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-03 15:22:13.555584"], ["updated_at", "2015-01-03 15:22:13.555584"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title102"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.558255"], ["updated_at", "2015-01-03 15:22:13.558255"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 15:22:13.560967"], ["updated_at", "2015-01-03 15:22:13.560967"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-03 15:22:13.565564"], ["updated_at", "2015-01-03 15:22:13.565564"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 15:22:13.570419"], ["updated_at", "2015-01-03 15:22:13.570419"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::PostTest: test_ensure_title_is_required
-------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 15:22:13.577206"], ["updated_at", "2015-01-03 15:22:13.577206"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Proclaim::PostTest: test_verify_excerpt
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 15:22:13.582271"], ["updated_at", "2015-01-03 15:22:13.582271"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 15:22:13.585506"], ["updated_at", "2015-01-03 15:22:13.585506"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 15:22:13.588377"], ["updated_at", "2015-01-03 15:22:13.588377"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 15:22:13.590766"], ["updated_at", "2015-01-03 15:22:13.590766"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 15:22:13.593104"], ["updated_at", "2015-01-03 15:22:13.593104"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::PostTest: test_ensure_author_is_required
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Proclaim::PostTest: test_ensure_factory_is_good
-----------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 15:22:13.602783"], ["updated_at", "2015-01-03 15:22:13.602783"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title113"], ["body", "body104"], ["author_id", 1], ["created_at", "2015-01-03 15:22:13.605317"], ["updated_at", "2015-01-03 15:22:13.605317"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_ensure_publication_date_when_published
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------
Proclaim::PostTest: test_ensure_body_is_required
------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 15:22:13.631762"], ["updated_at", "2015-01-03 15:22:13.631762"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 15:22:13.637608"], ["updated_at", "2015-01-03 15:22:13.637608"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 15:22:13.649536"], ["updated_at", "2015-01-03 15:22:13.649536"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_can't_be_taken_back
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 15:22:13.657619"], ["updated_at", "2015-01-03 15:22:13.657619"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
-----------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy
-----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 15:22:13.672419"], ["updated_at", "2015-01-03 15:22:13.672419"]]
[1m[36m (21.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (14.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (38.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.2ms)[0m 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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (22.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (15.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (16.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (24.7ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (21.4ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (30.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy
----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 15:22:14.862437"], ["updated_at", "2015-01-03 15:22:14.862437"]]
[1m[36m (31.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (29.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (38.2ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (66.8ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (43.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (49.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (42.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (45.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (36.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (53.5ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (40.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in
---------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 15:22:16.372979"], ["updated_at", "2015-01-03 15:22:16.372979"]]
[1m[35m (38.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (45.2ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author51"], ["body", "body50"], ["post_id", 1], ["created_at", "2015-01-03 15:22:16.471313"], ["updated_at", "2015-01-03 15:22:16.471313"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (51.9ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:17.418459"], ["updated_at", "2015-01-03 15:22:17.418459"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.7ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (26.1ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.3ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (42.0ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (23.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (27.2ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (36.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (27.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (27.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (50.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (38.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (39.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (34.6ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment
------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 15:22:17.979265"], ["updated_at", "2015-01-03 15:22:17.979265"]]
[1m[35m (41.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (45.3ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:18.940046"], ["updated_at", "2015-01-03 15:22:18.940046"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (43.7ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (27.0ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (28.2ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (43.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (33.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (29.7ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (31.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in
----------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 15:22:19.442336"], ["updated_at", "2015-01-03 15:22:19.442336"]]
[1m[35m (36.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (35.4ms)[0m 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"}
[1m[36mProclaim::Post Load (0.3ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:20.389613"], ["updated_at", "2015-01-03 15:22:20.389613"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (39.0ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (49.9ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (33.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (40.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (33.9ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (44.3ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (45.5ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (40.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (60.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (44.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in
------------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 15:22:20.985856"], ["updated_at", "2015-01-03 15:22:20.985856"]]
[1m[36m (43.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (46.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.9ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.4ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (38.3ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
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
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:21.846113"], ["updated_at", "2015-01-03 15:22:21.846113"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (38.9ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (30.2ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (24.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (30.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (31.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (40.5ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (31.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (35.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------
PostSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 15:22:22.356689"], ["updated_at", "2015-01-03 15:22:22.356689"]]
[1m[36m (29.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (40.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:23.290066"], ["updated_at", "2015-01-03 15:22:23.290066"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.2ms)[0m rollback transaction
Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 2.5ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (40.7ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (27.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (28.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (23.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (24.4ms)[0m DELETE FROM "users";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (24.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------
PostSubscriptionTest: test_catch_lack_of_email_address
------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m 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"]]
[1m[36m (32.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (25.5ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (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
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 15:22:24.576829"], ["updated_at", "2015-01-03 15:22:24.576829"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.2ms)[0m rollback transaction
Completed 422 Unprocessable Entity in 18ms (Views: 0.3ms | ActiveRecord: 3.0ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (54.9ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (37.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (35.4ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (36.7ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (38.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (36.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in
-----------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36m (39.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 15:22:25.024069"], ["updated_at", "2015-01-03 15:22:25.024069"]]
[1m[35m (47.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (40.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (44.6ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 15:22:26.061926"], ["updated_at", "2015-01-03 15:22:26.061926"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (26.5ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (22.8ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (23.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (22.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (39.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (32.0ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (38.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (37.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (31.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (33.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
[1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID
----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 15:22:26.538151"], ["updated_at", "2015-01-03 15:22:26.538151"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 15:22:26.542240"], ["updated_at", "2015-01-03 15:22:26.542240"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.544670"], ["updated_at", "2015-01-03 15:22:26.544670"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.548826"], ["updated_at", "2015-01-03 15:22:26.548826"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 15:22:26.558877"], ["updated_at", "2015-01-03 15:22:26.558877"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-03 15:22:26.568168"], ["updated_at", "2015-01-03 15:22:26.568168"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.570745"], ["updated_at", "2015-01-03 15:22:26.570745"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 15:22:26.580499"], ["updated_at", "2015-01-03 15:22:26.580499"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.582901"], ["updated_at", "2015-01-03 15:22:26.582901"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 15:22:26.594205"], ["updated_at", "2015-01-03 15:22:26.594205"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.597093"], ["updated_at", "2015-01-03 15:22:26.597093"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in
----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 15:22:26.602023"], ["updated_at", "2015-01-03 15:22:26.602023"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-03 15:22:26.605931"], ["updated_at", "2015-01-03 15:22:26.605931"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title135"], ["body", "body121"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.608178"], ["updated_at", "2015-01-03 15:22:26.608178"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420298546-3147-6760/test.jpg"}
Unpermitted parameter: format
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title136"], ["body", "body122"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.621252"], ["updated_at", "2015-01-03 15:22:26.621252"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 15:22:26.625966"], ["updated_at", "2015-01-03 15:22:26.625966"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.632229"], ["updated_at", "2015-01-03 15:22:26.632229"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Unpermitted parameter: format
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 15:22:26.642716"], ["updated_at", "2015-01-03 15:22:26.642716"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 3], ["created_at", "2015-01-03 15:22:26.645075"], ["updated_at", "2015-01-03 15:22:26.645075"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 15:22:26.649357"], ["updated_at", "2015-01-03 15:22:26.649357"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 15:22:26.653624"], ["updated_at", "2015-01-03 15:22:26.653624"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title139"], ["body", "body125"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.655944"], ["updated_at", "2015-01-03 15:22:26.655944"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.666253"], ["updated_at", "2015-01-03 15:22:26.666253"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 15:22:26.671659"], ["updated_at", "2015-01-03 15:22:26.671659"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 15:22:26.678993"], ["updated_at", "2015-01-03 15:22:26.678993"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title141"], ["body", "body127"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.681685"], ["updated_at", "2015-01-03 15:22:26.681685"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 15:22:26.686302"], ["updated_at", "2015-01-03 15:22:26.686302"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 15:22:26.696085"], ["updated_at", "2015-01-03 15:22:26.696085"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title142"], ["body", "body128"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.698620"], ["updated_at", "2015-01-03 15:22:26.698620"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 15:22:26.703868"], ["updated_at", "2015-01-03 15:22:26.703868"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title143"], ["body", "body129"], ["author_id", 1], ["created_at", "2015-01-03 15:22:26.706359"], ["updated_at", "2015-01-03 15:22:26.706359"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 15:22:26.715938"], ["updated_at", "2015-01-03 15:22:26.715938"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title144"], ["body", "body130"], ["author_id", 2], ["created_at", "2015-01-03 15:22:26.718491"], ["updated_at", "2015-01-03 15:22:26.718491"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post
-------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 15:22:26.797327"], ["updated_at", "2015-01-03 15:22:26.797327"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms)
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
BlogSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
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)
[1m[35m (0.1ms)[0m 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"}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "example@example.com"], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy
---------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 15:22:26.964275"], ["updated_at", "2015-01-03 15:22:26.964275"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in
-----------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 15:22:26.994126"], ["updated_at", "2015-01-03 15:22:26.994126"]]
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------
ProclaimTest: test_truth
------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (37.0ms)[0m [1mCREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (26.8ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (16.5ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35m (21.8ms)[0m CREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (25.1ms)[0m [1mCREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")[0m
[1m[35m (29.1ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (28.5ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35m (19.5ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (29.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (23.6ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35m (21.9ms)[0m CREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (28.3ms)[0m [1mCREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[1m[36m (36.0ms)[0m [1mCREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")[0m
[1m[35m (42.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (40.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (45.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (43.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')
[1m[36m (36.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141117214323')[0m
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateProclaimPosts (20141108222616)
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (0.5ms)[0m [1mCREATE 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) [0m
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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (29.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (43.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateProclaimPosts (20141108222616)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]
[1m[36m (45.8ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimComments (20141114235359)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.8ms)[0m [1mCREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114235359"]]
[1m[35m (42.7ms)[0m commit transaction
Migrating to CreateProclaimCommentHierarchies (20141115022230)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35m (1.5ms)[0m CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)
[1m[36m (2.7ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.4ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]
[1m[36m (44.2ms)[0m [1mcommit transaction[0m
Migrating to CreateUsers (20141117214323)
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (1.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]
[1m[36m (48.8ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimSubscriptions (20141210234057)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.5ms)[0m [1mCREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[0m
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141210234057"]]
[1m[35m (47.7ms)[0m commit transaction
Migrating to CreateProclaimImages (20141222224905)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.7ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]
[1m[36m (44.5ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='comment_desc_idx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_desc_idx' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[1m[36m (58.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.3ms)[0m select sqlite_version(*)
[1m[36m (33.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateProclaimPosts (20141108222616)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]
[1m[36m (35.8ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimComments (20141114235359)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.5ms)[0m [1mCREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114235359"]]
[1m[35m (36.7ms)[0m commit transaction
Migrating to CreateProclaimCommentHierarchies (20141115022230)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35m (1.4ms)[0m CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]
[1m[36m (24.9ms)[0m [1mcommit transaction[0m
Migrating to CreateUsers (20141117214323)
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]
[1m[36m (29.7ms)[0m [1mcommit transaction[0m
Migrating to CreateProclaimSubscriptions (20141210234057)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (1.6ms)[0m [1mCREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (0.3ms)[0m CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[0m
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141210234057"]]
[1m[35m (35.9ms)[0m commit transaction
Migrating to CreateProclaimImages (20141222224905)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (1.0ms)[0m CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]
[1m[36m (41.0ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='comment_desc_idx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_desc_idx' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='comment_anc_desc_udx' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='comment_anc_desc_udx' AND type='index'
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_comments_on_post_id' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_images_on_post_id' AND type='index'
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_state' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_posts_on_author_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:50:56.682334"], ["updated_at", "2015-01-03 22:50:56.682334"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:50:56.708114"], ["updated_at", "2015-01-03 22:50:56.708114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.9ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author1", "body"=>"body1", "post_id"=>1}, "id"=>"1"}
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:50:57.202225"], ["updated_at", "2015-01-03 22:50:57.202225"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:50:57.206595"], ["updated_at", "2015-01-03 22:50:57.206595"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.208937"], ["updated_at", "2015-01-03 22:50:57.208937"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.211442"], ["updated_at", "2015-01-03 22:50:57.211442"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m 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}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author4"], ["body", "body4"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.305424"], ["updated_at", "2015-01-03 22:50:57.305424"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author5", "body"=>"body5", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35m (0.2ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 3]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:50:57.349613"], ["updated_at", "2015-01-03 22:50:57.349613"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.357754"], ["updated_at", "2015-01-03 22:50:57.357754"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:50:57.377009"], ["updated_at", "2015-01-03 22:50:57.377009"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.379761"], ["updated_at", "2015-01-03 22:50:57.379761"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:50:57.390607"], ["updated_at", "2015-01-03 22:50:57.390607"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body9"], ["author", "author9"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.399659"], ["updated_at", "2015-01-03 22:50:57.399659"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:50:57.419186"], ["updated_at", "2015-01-03 22:50:57.419186"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title7"], ["body", "body7"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.421887"], ["updated_at", "2015-01-03 22:50:57.421887"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author10"], ["body", "body10"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.424222"], ["updated_at", "2015-01-03 22:50:57.424222"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author10", "body"=>"body10", "post_id"=>1}, "id"=>"1"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:50:57.437690"], ["updated_at", "2015-01-03 22:50:57.437690"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title8"], ["body", "body8"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.440526"], ["updated_at", "2015-01-03 22:50:57.440526"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author11"], ["body", "body11"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.442878"], ["updated_at", "2015-01-03 22:50:57.442878"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:50:57.458007"], ["updated_at", "2015-01-03 22:50:57.458007"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author13"], ["body", "body13"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.463420"], ["updated_at", "2015-01-03 22:50:57.463420"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:50:57.495814"], ["updated_at", "2015-01-03 22:50:57.495814"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["created_at", "2015-01-03 22:50:57.498925"], ["updated_at", "2015-01-03 22:50:57.498925"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author15"], ["body", "body15"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.501600"], ["updated_at", "2015-01-03 22:50:57.501600"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
Completed 500 Internal Server Error in 0ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:50:57.513073"], ["updated_at", "2015-01-03 22:50:57.513073"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author16", "body"=>"body16", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:50:57.528275"], ["updated_at", "2015-01-03 22:50:57.528275"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:50:57.532566"], ["updated_at", "2015-01-03 22:50:57.532566"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title12"], ["body", "body12"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.534803"], ["updated_at", "2015-01-03 22:50:57.534803"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.536973"], ["updated_at", "2015-01-03 22:50:57.536973"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
Completed 500 Internal Server Error in 0ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:50:57.547132"], ["updated_at", "2015-01-03 22:50:57.547132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:50:57.551393"], ["updated_at", "2015-01-03 22:50:57.551393"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title13"], ["body", "body13"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.553666"], ["updated_at", "2015-01-03 22:50:57.553666"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body18"], ["author", "author18"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.562504"], ["updated_at", "2015-01-03 22:50:57.562504"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:50:57.584579"], ["updated_at", "2015-01-03 22:50:57.584579"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author19", "body"=>"body19", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body19"], ["author", "author19"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.594252"], ["updated_at", "2015-01-03 22:50:57.594252"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:50:57.617052"], ["updated_at", "2015-01-03 22:50:57.617052"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:50:57.620445"], ["updated_at", "2015-01-03 22:50:57.620445"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body15"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.622843"], ["updated_at", "2015-01-03 22:50:57.622843"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author20"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.625359"], ["updated_at", "2015-01-03 22:50:57.625359"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:50:57.632183"], ["updated_at", "2015-01-03 22:50:57.632183"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title16"], ["body", "body16"], ["author_id", 3], ["created_at", "2015-01-03 22:50:57.634553"], ["updated_at", "2015-01-03 22:50:57.634553"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author21"], ["body", "body21"], ["post_id", 2], ["created_at", "2015-01-03 22:50:57.636684"], ["updated_at", "2015-01-03 22:50:57.636684"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:50:57.643904"], ["updated_at", "2015-01-03 22:50:57.643904"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:50:57.647391"], ["updated_at", "2015-01-03 22:50:57.647391"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:50:57.656101"], ["updated_at", "2015-01-03 22:50:57.656101"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body18"], ["author_id", 3], ["created_at", "2015-01-03 22:50:57.659835"], ["updated_at", "2015-01-03 22:50:57.659835"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:50:57.664905"], ["updated_at", "2015-01-03 22:50:57.664905"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:50:57.668088"], ["updated_at", "2015-01-03 22:50:57.668088"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 22:50:57.673248"], ["updated_at", "2015-01-03 22:50:57.673248"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:50:57.680387"], ["updated_at", "2015-01-03 22:50:57.680387"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:50:57.683701"], ["updated_at", "2015-01-03 22:50:57.683701"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body20"], ["author_id", 2], ["created_at", "2015-01-03 22:50:57.686200"], ["updated_at", "2015-01-03 22:50:57.686200"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy
------------------------------------------------------------------------------------
[1m[35m (0.2ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription
-----------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-------------------------------------
PostFormTest: test_should_create_post
-------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:51:05.333299"], ["updated_at", "2015-01-03 22:51:05.333299"]]
[1m[35m (50.3ms)[0m 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
[1m[36m (77.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (53.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (52.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (54.1ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (47.5ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
---------------------------------------------
PostFormTest: test_should_delete_cached_image
---------------------------------------------
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m 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"]]
[1m[36m (48.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:51:10.716182"], ["updated_at", "2015-01-03 22:51:10.716182"]]
[1m[35m (54.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.3ms)[0m 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"]]
[1m[36m (46.4ms)[0m [1mcommit transaction[0m
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
[1m[35m (59.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (46.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (43.5ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (53.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (50.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (42.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (49.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------------
PostFormTest: test_should_show_error_without_title
--------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:51:11.346987"], ["updated_at", "2015-01-03 22:51:11.346987"]]
[1m[35m (55.7ms)[0m 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
[1m[36m (48.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (40.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (53.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (41.0ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (43.0ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (46.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------
PostFormTest: test_should_delete_saved_image
--------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:51:11.783317"], ["updated_at", "2015-01-03 22:51:11.783317"]]
[1m[36m (49.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:51:11.836320"], ["updated_at", "2015-01-03 22:51:11.836320"]]
[1m[35m (47.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.9ms)[0m 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"]]
[1m[36m (68.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:11.970349"], ["updated_at", "2015-01-03 22:51:11.970349"]]
[1m[35m (80.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "test
"], ["updated_at", "2015-01-03 22:51:12.059820"], ["id", 1]]
[1m[36m (47.2ms)[0m [1mcommit transaction[0m
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
[1m[35m (48.3ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (60.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (58.2ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (51.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (43.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (51.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (50.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (41.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (52.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------------------
PostFormTest: test_should_show_error_without_body
-------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:51:12.678249"], ["updated_at", "2015-01-03 22:51:12.678249"]]
[1m[35m (49.7ms)[0m 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
[1m[36m (49.2ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (48.5ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (50.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (49.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (56.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (52.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (55.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------------------------------
PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image
--------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:51:13.164354"], ["updated_at", "2015-01-03 22:51:13.164354"]]
[1m[36m (50.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:51:13.222417"], ["updated_at", "2015-01-03 22:51:13.222417"]]
[1m[35m (46.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.9ms)[0m 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"]]
[1m[36m (52.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:13.342674"], ["updated_at", "2015-01-03 22:51:13.342674"]]
[1m[35m (54.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:51:13.408650"], ["id", 1]]
[1m[36m (52.5ms)[0m [1mcommit transaction[0m
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
[1m[35m (51.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (63.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (55.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (57.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (47.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (50.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (40.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (51.2ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (50.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
[1m[35m (0.2ms)[0m begin transaction
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:51:14.012060"], ["updated_at", "2015-01-03 22:51:14.012060"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:51:14.026451"], ["updated_at", "2015-01-03 22:51:14.026451"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title4"], ["body", "body3"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.028762"], ["updated_at", "2015-01-03 22:51:14.028762"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.031708"], ["updated_at", "2015-01-03 22:51:14.031708"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:51:14.083492"], ["updated_at", "2015-01-03 22:51:14.083492"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:51:14.090311"], ["updated_at", "2015-01-03 22:51:14.090311"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.096805"], ["updated_at", "2015-01-03 22:51:14.096805"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:51:14.103542"], ["updated_at", "2015-01-03 22:51:14.103542"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title6"], ["body", "body5"], ["author_id", 3], ["created_at", "2015-01-03 22:51:14.105716"], ["updated_at", "2015-01-03 22:51:14.105716"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:51:14.115160"], ["updated_at", "2015-01-03 22:51:14.115160"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:51:14.119462"], ["updated_at", "2015-01-03 22:51:14.119462"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:51:14.135134"], ["updated_at", "2015-01-03 22:51:14.135134"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title8"], ["body", "body7"], ["author_id", 3], ["created_at", "2015-01-03 22:51:14.137204"], ["updated_at", "2015-01-03 22:51:14.137204"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:51:14.140160"], ["updated_at", "2015-01-03 22:51:14.140160"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:51:14.143448"], ["updated_at", "2015-01-03 22:51:14.143448"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title9"], ["body", "body8"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.145838"], ["updated_at", "2015-01-03 22:51:14.145838"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.148136"], ["updated_at", "2015-01-03 22:51:14.148136"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:51:14.162632"], ["updated_at", "2015-01-03 22:51:14.162632"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body9"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.165561"], ["updated_at", "2015-01-03 22:51:14.165561"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>1}, "id"=>"1"}
[1m[35mProclaim::Comment Load (0.2ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:51:14.184497"], ["updated_at", "2015-01-03 22:51:14.184497"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title11"], ["body", "body10"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.191184"], ["updated_at", "2015-01-03 22:51:14.191184"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author8"], ["body", "body8"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.193687"], ["updated_at", "2015-01-03 22:51:14.193687"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:51:14.682612"], ["updated_at", "2015-01-03 22:51:14.682612"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35m (0.1ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:51:14.725372"], ["updated_at", "2015-01-03 22:51:14.725372"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title13"], ["body", "body12"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.728126"], ["updated_at", "2015-01-03 22:51:14.728126"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:51:14.738543"], ["updated_at", "2015-01-03 22:51:14.738543"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author13", "body"=>"body13", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:51:14.765995"], ["updated_at", "2015-01-03 22:51:14.765995"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:51:14.769908"], ["updated_at", "2015-01-03 22:51:14.769908"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body14"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.772071"], ["updated_at", "2015-01-03 22:51:14.772071"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body14"], ["author", "author14"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.780029"], ["updated_at", "2015-01-03 22:51:14.780029"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:51:14.803506"], ["updated_at", "2015-01-03 22:51:14.803506"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:51:14.834221"], ["updated_at", "2015-01-03 22:51:14.834221"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:51:14.838041"], ["updated_at", "2015-01-03 22:51:14.838041"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body16"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.840161"], ["updated_at", "2015-01-03 22:51:14.840161"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author16"], ["body", "body16"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.842345"], ["updated_at", "2015-01-03 22:51:14.842345"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
Completed 500 Internal Server Error in 0ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 22:51:14.854177"], ["updated_at", "2015-01-03 22:51:14.854177"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title18"], ["body", "body17"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.856840"], ["updated_at", "2015-01-03 22:51:14.856840"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.859211"], ["updated_at", "2015-01-03 22:51:14.859211"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:51:14.874146"], ["updated_at", "2015-01-03 22:51:14.874146"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author19"], ["body", "body19"], ["post_id", 2], ["created_at", "2015-01-03 22:51:14.879969"], ["updated_at", "2015-01-03 22:51:14.879969"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author20", "body"=>"body20", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:51:14.910082"], ["updated_at", "2015-01-03 22:51:14.910082"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body19"], ["author_id", 1], ["created_at", "2015-01-03 22:51:14.912675"], ["updated_at", "2015-01-03 22:51:14.912675"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-03 22:51:14.915008"], ["updated_at", "2015-01-03 22:51:14.915008"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
Completed 500 Internal Server Error in 0ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:51:14.926797"], ["updated_at", "2015-01-03 22:51:14.926797"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author23", "body"=>"body23", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:51:14.950076"], ["updated_at", "2015-01-03 22:51:14.950076"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author24", "body"=>"body24", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:51:14.964803"], ["updated_at", "2015-01-03 22:51:14.964803"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 22:51:14.969243"], ["updated_at", "2015-01-03 22:51:14.969243"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title23"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-03 22:51:14.971782"], ["updated_at", "2015-01-03 22:51:14.971782"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author25", "body"=>"body25", "post_id"=>1}, "id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m rollback transaction
-----------------------------------
CommentTest: test_leave_two_replies
-----------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:51:15.005040"], ["updated_at", "2015-01-03 22:51:15.005040"]]
[1m[36m (18.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.4ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (28.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (16.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:51:16.227660"], ["updated_at", "2015-01-03 22:51:16.227660"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (57.4ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.4ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 2"], ["author", "Reply Author 2"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:51:17.130827"], ["updated_at", "2015-01-03 22:51:17.130827"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (62.3ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (63.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_date_requirement
------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:51:45.998472"], ["updated_at", "2015-01-03 22:51:45.998472"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title1"], ["body", "body1"], ["author_id", 2], ["created_at", "2015-01-03 22:51:46.007934"], ["updated_at", "2015-01-03 22:51:46.007934"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:51:46.011966"], ["updated_at", "2015-01-03 22:51:46.011966"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:51:46.345265"], ["updated_at", "2015-01-03 22:51:46.345265"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:51:46.349885"], ["updated_at", "2015-01-03 22:51:46.349885"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Proclaim::PostTest: test_ensure_publication_date_when_published
---------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:51:46.360847"], ["updated_at", "2015-01-03 22:51:46.360847"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_can't_be_taken_back
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:51:46.368140"], ["updated_at", "2015-01-03 22:51:46.368140"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Proclaim::PostTest: test_verify_excerpt
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:51:46.376059"], ["updated_at", "2015-01-03 22:51:46.376059"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:51:46.378786"], ["updated_at", "2015-01-03 22:51:46.378786"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:51:46.381843"], ["updated_at", "2015-01-03 22:51:46.381843"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:51:46.384217"], ["updated_at", "2015-01-03 22:51:46.384217"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:51:46.386439"], ["updated_at", "2015-01-03 22:51:46.386439"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------
Proclaim::PostTest: test_ensure_title_is_required
-------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:51:46.390697"], ["updated_at", "2015-01-03 22:51:46.390697"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::PostTest: test_ensure_author_is_required
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
Proclaim::PostTest: test_ensure_body_is_required
------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:51:46.405943"], ["updated_at", "2015-01-03 22:51:46.405943"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:51:46.410066"], ["updated_at", "2015-01-03 22:51:46.410066"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:51:46.414584"], ["updated_at", "2015-01-03 22:51:46.414584"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:51:46.419443"], ["updated_at", "2015-01-03 22:51:46.419443"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Proclaim::PostTest: test_ensure_factory_is_good
-----------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:51:46.428915"], ["updated_at", "2015-01-03 22:51:46.428915"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title19"], ["body", "body10"], ["author_id", 2], ["created_at", "2015-01-03 22:51:46.431752"], ["updated_at", "2015-01-03 22:51:46.431752"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
PostTest: test_index_should_show_excerpts
-----------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:51:46.443005"], ["updated_at", "2015-01-03 22:51:46.443005"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (6.5ms)
Completed 200 OK in 54ms (Views: 51.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:51:46.534661"], ["updated_at", "2015-01-03 22:51:46.534661"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
PostTest: test_image_should_have_relative_source_path
-----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:51:46.553272"], ["updated_at", "2015-01-03 22:51:46.553272"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:51:46.559958"], ["updated_at", "2015-01-03 22:51:46.559958"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 2], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:46.567901"], ["updated_at", "2015-01-03 22:51:46.567901"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-03 22:51:46.571996"], ["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
PostTest: test_show_should_show_author_name
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:51:46.578888"], ["updated_at", "2015-01-03 22:51:46.578888"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts/2" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in
-------------------------------------------------------------------------------
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.9ms)
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:51:46.642076"], ["updated_at", "2015-01-03 22:51:46.642076"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------
PostTest: test_index_should_show_more_link
------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:51:46.663244"], ["updated_at", "2015-01-03 22:51:46.663244"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-03 22:51:46.670337"], ["updated_at", "2015-01-03 22:51:46.670337"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.0ms)
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------
PostTest: test_index_should_show_post_titles
--------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-03 22:51:46.690798"], ["updated_at", "2015-01-03 22:51:46.690798"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:51:46.697337"], ["updated_at", "2015-01-03 22:51:46.697337"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.8ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
PostTest: test_index_should_give_option_to_delete_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:51:46.716342"], ["updated_at", "2015-01-03 22:51:46.716342"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-03 22:51:46.719593"], ["updated_at", "2015-01-03 22:51:46.719593"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.1ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
PostTest: test_index_should_give_option_to_edit_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:51:46.738260"], ["updated_at", "2015-01-03 22:51:46.738260"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:51:46.740837"], ["updated_at", "2015-01-03 22:51:46.740837"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.3ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------
PostTest: test_index_should_show_authors
----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:51:46.760458"], ["updated_at", "2015-01-03 22:51:46.760458"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:51:46.767774"], ["updated_at", "2015-01-03 22:51:46.767774"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:51:46 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms)
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
PostTest: test_index_should_give_option_to_create_new_post_if_logged_in
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:51:46.787418"], ["updated_at", "2015-01-03 22:51:46.787418"]]
[1m[35m (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs
------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 2], ["image", "test.jpg"], ["created_at", "2015-01-03 22:51:47.115867"], ["updated_at", "2015-01-03 22:51:47.115867"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["published_at", "2015-01-03 22:51:47.118193"], ["state", "published"], ["updated_at", "2015-01-03 22:51:47.119858"], ["id", 2]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
|
Written on January 03, 2015 at 10:51 PM UTC by first_name37 last_name37
|
|
----==_mimepart_54a8728326792_6414b25318218a9--
[ActiveJob] [ActionMailer::DeliveryJob] [d2ba1d4b-7e8e-4348-a90c-cf3269579045] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.01ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.9ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_post_notification_email
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:51:47.225873"], ["updated_at", "2015-01-03 22:51:47.225873"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 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] [1m[35mUser Load (0.1ms)[0m 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 |
Written on January 03, 2015 at 10:51 PM UTC by first_name38 last_name38
|
|
----==_mimepart_54a872833dd3b_6414b253182232b--
[ActiveJob] [ActionMailer::DeliveryJob] [83b3645e-8f36-4583-9164-57a11c6e03bd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.19ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 19.4ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Proclaim::SubscriptionMailerTest: test_welcome_email
----------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.1ms)
Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 22.7ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_comment_notification_email
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 22:51:47.351634"], ["updated_at", "2015-01-03 22:51:47.351634"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title36"], ["body", "body23"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.354269"], ["updated_at", "2015-01-03 22:51:47.354269"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" = 2) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 22:51:47.396546"], ["updated_at", "2015-01-03 22:51:47.396546"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title37"], ["body", "body24"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.399006"], ["updated_at", "2015-01-03 22:51:47.399006"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.401059"], ["updated_at", "2015-01-03 22:51:47.401059"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 3]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.0ms)[0m 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
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 22:51:47.455374"], ["updated_at", "2015-01-03 22:51:47.455374"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 22:51:47.470698"], ["updated_at", "2015-01-03 22:51:47.470698"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author3", "body"=>"body3", "post_id"=>3, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 3]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 22:51:47.507712"], ["updated_at", "2015-01-03 22:51:47.507712"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 22:51:47.511405"], ["updated_at", "2015-01-03 22:51:47.511405"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body27"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.513587"], ["updated_at", "2015-01-03 22:51:47.513587"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author4"], ["body", "body4"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.515994"], ["updated_at", "2015-01-03 22:51:47.515994"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"4"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 4
) AS x )
OR descendant_id = 4
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 4]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 22:51:47.531512"], ["updated_at", "2015-01-03 22:51:47.531512"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author5", "body"=>"body5", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 22:51:47.547764"], ["updated_at", "2015-01-03 22:51:47.547764"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body29"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.550442"], ["updated_at", "2015-01-03 22:51:47.550442"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author6"], ["body", "body6"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.552634"], ["updated_at", "2015-01-03 22:51:47.552634"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author6", "body"=>"body6", "post_id"=>2}, "id"=>"4"}
[1m[35mProclaim::Comment Load (0.1ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 22:51:47.564131"], ["updated_at", "2015-01-03 22:51:47.564131"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 22:51:47.568650"], ["updated_at", "2015-01-03 22:51:47.568650"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title43"], ["body", "body30"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.571129"], ["updated_at", "2015-01-03 22:51:47.571129"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author7"], ["body", "body7"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.573656"], ["updated_at", "2015-01-03 22:51:47.573656"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>2}, "id"=>"4"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 4]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 4]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 22:51:47.604403"], ["updated_at", "2015-01-03 22:51:47.604403"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 22:51:47.631635"], ["updated_at", "2015-01-03 22:51:47.631635"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author10"], ["body", "body10"], ["post_id", 3], ["created_at", "2015-01-03 22:51:47.637918"], ["updated_at", "2015-01-03 22:51:47.637918"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 5]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>3, "parent_id"=>5}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 3]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 6], ["descendant_id", 6], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT 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
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 6]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 6]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 5]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 5]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 22:51:47.672005"], ["updated_at", "2015-01-03 22:51:47.672005"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 22:51:47.676266"], ["updated_at", "2015-01-03 22:51:47.676266"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 22:51:47.714004"], ["updated_at", "2015-01-03 22:51:47.714004"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author13", "body"=>"body13", "post_id"=>3, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 5]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 5]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 5]]
[1m[35mProclaim::Post Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 22:51:47.758411"], ["updated_at", "2015-01-03 22:51:47.758411"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 22:51:47.784462"], ["updated_at", "2015-01-03 22:51:47.784462"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title49"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-03 22:51:47.787492"], ["updated_at", "2015-01-03 22:51:47.787492"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body16"], ["post_id", 2], ["created_at", "2015-01-03 22:51:47.790405"], ["updated_at", "2015-01-03 22:51:47.790405"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"4"}
[1m[35mProclaim::Comment Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 22:51:47.804291"], ["updated_at", "2015-01-03 22:51:47.804291"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 22:51:47.808611"], ["updated_at", "2015-01-03 22:51:47.808611"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title50"], ["body", "body37"], ["author_id", 3], ["created_at", "2015-01-03 22:51:47.811745"], ["updated_at", "2015-01-03 22:51:47.811745"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>2, "parent_id"=>4}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 5], ["descendant_id", 5], ["generations", 0]]
[1m[35m (0.3ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 5]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 5]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 4]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 4]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 6], ["descendant_id", 6], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 6]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author20", "body"=>"body20", "post_id"=>3, "parent_id"=>6}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 3]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 7], ["descendant_id", 7], ["generations", 0]]
[1m[36m (0.1ms)[0m [1mINSERT 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
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 7]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 7]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 6]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 6]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.2ms)[0m rollback transaction
-----------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy
-----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 22:51:47.960910"], ["updated_at", "2015-01-03 22:51:47.960910"]]
[1m[36m (60.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (30.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author21"], ["body", "body21"], ["post_id", 2], ["created_at", "2015-01-03 22:51:48.064739"], ["updated_at", "2015-01-03 22:51:48.064739"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]
[1m[36m (33.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.8ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]]
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 4]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (216.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (76.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (59.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (50.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (39.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (43.1ms)[0m DELETE FROM "users";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (39.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (46.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (43.4ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy
----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 22:51:54.153531"], ["updated_at", "2015-01-03 22:51:54.153531"]]
[1m[36m (53.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.4ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (172.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (40.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 6ms (Views: 0.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (67.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (55.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (70.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (48.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (51.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (46.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (49.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (46.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------------
PostSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 22:51:55.920098"], ["updated_at", "2015-01-03 22:51:55.920098"]]
[1m[35m (45.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (47.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:51:56.779551"], ["updated_at", "2015-01-03 22:51:56.779551"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (1.0ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 2.4ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (56.4ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (45.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (44.5ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (46.9ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (46.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (52.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (46.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in
------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 22:51:57.236954"], ["updated_at", "2015-01-03 22:51:57.236954"]]
[1m[35m (52.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.9ms)[0m 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"]]
[1m[36m (47.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (45.4ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (75.9ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (55.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (39.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (46.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (56.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (49.0ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (53.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (45.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (49.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (47.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in
---------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (50.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.8ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (42.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 22:51:58.909366"], ["updated_at", "2015-01-03 22:51:58.909366"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (48.6ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body"], ["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.2ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (64.5ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.3ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.8ms)
Completed 200 OK in 155ms (Views: 0.5ms | ActiveRecord: 68.3ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (45.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (40.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (41.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (38.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (54.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.6ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (47.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (49.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in
-----------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 22:52:00.407385"], ["updated_at", "2015-01-03 22:52:00.407385"]]
[1m[35m (45.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36m (46.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (55.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-03 22:52:00.572150"], ["updated_at", "2015-01-03 22:52:00.572150"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (48.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (60.0ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (56.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (42.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (37.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (39.1ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (38.5ms)[0m DELETE FROM "users";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (49.4ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (45.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (51.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (46.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------------------------
PostSubscriptionTest: test_catch_lack_of_email_address
------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 22:52:02.203880"], ["updated_at", "2015-01-03 22:52:02.203880"]]
[1m[36m (44.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (41.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:52:02.981312"], ["updated_at", "2015-01-03 22:52:02.981312"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.2ms)[0m rollback transaction
Completed 422 Unprocessable Entity in 20ms (Views: 0.2ms | ActiveRecord: 2.1ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (51.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (38.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (38.4ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (35.0ms)[0m DELETE FROM "users";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (31.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (32.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (42.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in
----------------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 22:52:03.359534"], ["updated_at", "2015-01-03 22:52:03.359534"]]
[1m[36m (33.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (39.4ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:52:04.108383"], ["updated_at", "2015-01-03 22:52:04.108383"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (41.2ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (43.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (45.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (31.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (47.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (45.8ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (43.7ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (36.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (48.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment
------------------------------------------------------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (40.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (34.5ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:52:05.498491"], ["updated_at", "2015-01-03 22:52:05.498491"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (59.6ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (60.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (30.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (39.4ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (47.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (40.0ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.7ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (37.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (44.8ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
[1m[35m (0.3ms)[0m begin transaction
-------------------------------------------------
Proclaim::ImageTest: test_ensure_post_is_required
-------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly
------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 22:52:06.104292"], ["updated_at", "2015-01-03 22:52:06.104292"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
Proclaim::ImageTest: test_ensure_factory_is_good
------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 22:52:06.122190"], ["updated_at", "2015-01-03 22:52:06.122190"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title62"], ["body", "body49"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.125089"], ["updated_at", "2015-01-03 22:52:06.125089"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_required
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 22:52:06.134736"], ["updated_at", "2015-01-03 22:52:06.134736"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title63"], ["body", "body50"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.137295"], ["updated_at", "2015-01-03 22:52:06.137295"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Proclaim::ImageTest: test_ensure_post_validity_is_verified
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated
-------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["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] [1m[35mUser Load (0.0ms)[0m 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 |
Written on January 03, 2015 at 10:52 PM UTC by first_name73 last_name73
|
|
----==_mimepart_54a8729635864_6414b2531824450--
[ActiveJob] [ActionMailer::DeliveryJob] [152543e4-5fb8-4b02-8d48-f0541cf04e5d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 25.46ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 22:52:06.227141"], ["updated_at", "2015-01-03 22:52:06.227141"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.271248"], ["updated_at", "2015-01-03 22:52:06.271248"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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 |
Written on January 03, 2015 at 10:52 PM UTC by author25
|
|
----==_mimepart_54a8729648fcb_6414b2531824837--
[ActiveJob] [ActionMailer::DeliveryJob] [7f7109ce-41c5-4eee-9989-34f108353a57] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.32ms
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription
-------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 22:52:06.311624"], ["updated_at", "2015-01-03 22:52:06.311624"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published
-----------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-03 22:52:06.406633"], ["updated_at", "2015-01-03 22:52:06.406633"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body54"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.409426"], ["updated_at", "2015-01-03 22:52:06.409426"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["published_at", "2015-01-03 22:52:06.411198"], ["state", "published"], ["updated_at", "2015-01-03 22:52:06.412496"], ["id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 10:52 PM UTC by first_name76 last_name76
|
|
----==_mimepart_54a872966cbd4_6414b253182543b--
[ActiveJob] [ActionMailer::DeliveryJob] [5e22be89-19ee-4c51-8c5c-5fdcdf895004] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.72ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published
-----------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m 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
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 22:52:06.492836"], ["updated_at", "2015-01-03 22:52:06.492836"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mUser Load (0.1ms)[0m 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 |
Written on January 03, 2015 at 10:52 PM UTC by first_name77 last_name77
|
|
----==_mimepart_54a872967fa8d_6414b253182584b--
[ActiveJob] [ActionMailer::DeliveryJob] [ab6a4c64-e1c0-431f-899d-38feb29e1aa1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.88ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made
-------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 22:52:06.531244"], ["updated_at", "2015-01-03 22:52:06.531244"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.575922"], ["updated_at", "2015-01-03 22:52:06.575922"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["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] [1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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 |
Written on January 03, 2015 at 10:52 PM UTC by author26
|
|
----==_mimepart_54a8729693893_6414b253182627f--
[ActiveJob] [ActionMailer::DeliveryJob] [1195716b-f61a-4f56-95dc-86626c1c8ced] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.18ms
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 22:52:06.614677"], ["updated_at", "2015-01-03 22:52:06.614677"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 22:52:06.617789"], ["updated_at", "2015-01-03 22:52:06.617789"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-03 22:52:06.624383"], ["updated_at", "2015-01-03 22:52:06.624383"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title71"], ["body", "body58"], ["author_id", 3], ["created_at", "2015-01-03 22:52:06.626528"], ["updated_at", "2015-01-03 22:52:06.626528"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 22:52:06.629391"], ["updated_at", "2015-01-03 22:52:06.629391"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 22:52:06.632223"], ["updated_at", "2015-01-03 22:52:06.632223"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title72"], ["body", "body59"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.634356"], ["updated_at", "2015-01-03 22:52:06.634356"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author29"], ["body", "body29"], ["post_id", 1], ["created_at", "2015-01-03 22:52:06.636554"], ["updated_at", "2015-01-03 22:52:06.636554"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 22:52:06.643336"], ["updated_at", "2015-01-03 22:52:06.643336"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title73"], ["body", "body60"], ["author_id", 3], ["created_at", "2015-01-03 22:52:06.645532"], ["updated_at", "2015-01-03 22:52:06.645532"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author30"], ["body", "body30"], ["post_id", 2], ["created_at", "2015-01-03 22:52:06.647436"], ["updated_at", "2015-01-03 22:52:06.647436"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 22:52:06.654238"], ["updated_at", "2015-01-03 22:52:06.654238"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 22:52:06.657001"], ["updated_at", "2015-01-03 22:52:06.657001"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title74"], ["body", "body61"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.659213"], ["updated_at", "2015-01-03 22:52:06.659213"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 22:52:06.667667"], ["updated_at", "2015-01-03 22:52:06.667667"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 22:52:06.671159"], ["updated_at", "2015-01-03 22:52:06.671159"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title75"], ["body", "body62"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.674468"], ["updated_at", "2015-01-03 22:52:06.674468"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Proclaim::InstallGeneratorTest: test_generator_runs_without_errors
------------------------------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------
ProclaimTest: test_truth
------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in
------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 22:52:06.699236"], ["updated_at", "2015-01-03 22:52:06.699236"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title76"], ["body", "body63"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.701887"], ["updated_at", "2015-01-03 22:52:06.701887"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 22:52:06.722865"], ["updated_at", "2015-01-03 22:52:06.722865"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 22:52:06.726204"], ["updated_at", "2015-01-03 22:52:06.726204"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title77"}}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title77"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.746572"], ["updated_at", "2015-01-03 22:52:06.746572"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.748628"], ["updated_at", "2015-01-03 22:52:06.748628"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:52:06.753446"], ["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 25ms (ActiveRecord: 1.0ms)
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 22:52:06.764126"], ["updated_at", "2015-01-03 22:52:06.764126"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 22:52:06.768163"], ["updated_at", "2015-01-03 22:52:06.768163"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title78"], ["body", "body65"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.770631"], ["updated_at", "2015-01-03 22:52:06.770631"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 22:52:06.788782"], ["updated_at", "2015-01-03 22:52:06.788782"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 22:52:06.792035"], ["updated_at", "2015-01-03 22:52:06.792035"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title79"], ["body", "body66"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.794367"], ["updated_at", "2015-01-03 22:52:06.794367"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title79"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:06.807599"], ["updated_at", "2015-01-03 22:52:06.807599"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:52:06.812588"], ["id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in
--------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 22:52:06.823527"], ["updated_at", "2015-01-03 22:52:06.823527"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title80"], ["body", "body67"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.826443"], ["updated_at", "2015-01-03 22:52:06.826443"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 22:52:06.829665"], ["updated_at", "2015-01-03 22:52:06.829665"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 22:52:06.847687"], ["updated_at", "2015-01-03 22:52:06.847687"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 22:52:06.851242"], ["updated_at", "2015-01-03 22:52:06.851242"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title82"], ["body", "body69"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.853443"], ["updated_at", "2015-01-03 22:52:06.853443"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 22:52:06.856498"], ["updated_at", "2015-01-03 22:52:06.856498"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mUser Load (0.1ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 22:52:06.887439"], ["updated_at", "2015-01-03 22:52:06.887439"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title84"], ["body", "body71"], ["author_id", 1], ["created_at", "2015-01-03 22:52:06.890985"], ["updated_at", "2015-01-03 22:52:06.890985"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_new_if_logged_in
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 22:52:06.903603"], ["updated_at", "2015-01-03 22:52:06.903603"]]
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 22:52:06.930358"], ["updated_at", "2015-01-03 22:52:06.930358"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 22:52:06.933657"], ["updated_at", "2015-01-03 22:52:06.933657"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title85"], ["body", "body72"], ["author_id", 2], ["created_at", "2015-01-03 22:52:06.935748"], ["updated_at", "2015-01-03 22:52:06.935748"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body72", "title"=>"title85"}, "publish"=>"true", "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 22:52:06.954811"], ["updated_at", "2015-01-03 22:52:06.954811"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 22:52:06.958480"], ["updated_at", "2015-01-03 22:52:06.958480"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body73", "title"=>"title86"}, "publish"=>"true"}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 22:52:06.981614"], ["updated_at", "2015-01-03 22:52:06.981614"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 22:52:06.984900"], ["updated_at", "2015-01-03 22:52:06.984900"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 22:52:07.003537"], ["updated_at", "2015-01-03 22:52:07.003537"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title88"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.005840"], ["updated_at", "2015-01-03 22:52:07.005840"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 22:52:07.019756"], ["updated_at", "2015-01-03 22:52:07.019756"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 22:52:07.022917"], ["updated_at", "2015-01-03 22:52:07.022917"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.025035"], ["updated_at", "2015-01-03 22:52:07.025035"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-03 22:52:07.048981"], ["updated_at", "2015-01-03 22:52:07.048981"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 22:52:07.052040"], ["updated_at", "2015-01-03 22:52:07.052040"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body77", "title"=>"title90"}}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 22:52:07.070555"], ["updated_at", "2015-01-03 22:52:07.070555"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title91"], ["body", "body78"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.073460"], ["updated_at", "2015-01-03 22:52:07.073460"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body78", "title"=>"title91"}, "id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-03 22:52:07.086395"], ["updated_at", "2015-01-03 22:52:07.086395"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body79", "title"=>"title92"}}
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_update_post_if_logged_in
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 22:52:07.098518"], ["updated_at", "2015-01-03 22:52:07.098518"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 22:52:07.102154"], ["updated_at", "2015-01-03 22:52:07.102154"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title93"], ["body", "body80"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.104731"], ["updated_at", "2015-01-03 22:52:07.104731"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body80", "title"=>"title93"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 22:52:07.121723"], ["updated_at", "2015-01-03 22:52:07.121723"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.4ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-03 22:52:07.147421"], ["updated_at", "2015-01-03 22:52:07.147421"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title95"], ["body", "body82"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.149831"], ["updated_at", "2015-01-03 22:52:07.149831"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in
----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 22:52:07.160467"], ["updated_at", "2015-01-03 22:52:07.160467"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-03 22:52:07.164229"], ["updated_at", "2015-01-03 22:52:07.164229"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title96"], ["body", "body83"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.166771"], ["updated_at", "2015-01-03 22:52:07.166771"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 22:52:07.178960"], ["updated_at", "2015-01-03 22:52:07.178960"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 22:52:07.194232"], ["updated_at", "2015-01-03 22:52:07.194232"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 22:52:07.198135"], ["updated_at", "2015-01-03 22:52:07.198135"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title98"], ["body", "body85"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.200573"], ["updated_at", "2015-01-03 22:52:07.200573"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:07.210039"], ["updated_at", "2015-01-03 22:52:07.210039"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 22:52:07.215889"], ["updated_at", "2015-01-03 22:52:07.215889"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 22:52:07.230230"], ["updated_at", "2015-01-03 22:52:07.230230"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420325527-25620-8808/test.jpg"}
Unpermitted parameter: format
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 22:52:07.243150"], ["updated_at", "2015-01-03 22:52:07.243150"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title101"], ["body", "body88"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.245545"], ["updated_at", "2015-01-03 22:52:07.245545"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 22:52:07.250673"], ["updated_at", "2015-01-03 22:52:07.250673"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title102"], ["body", "body89"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.253624"], ["updated_at", "2015-01-03 22:52:07.253624"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title103"], ["body", "body90"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.266035"], ["updated_at", "2015-01-03 22:52:07.266035"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 22:52:07.273762"], ["updated_at", "2015-01-03 22:52:07.273762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title104"], ["body", "body91"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.275904"], ["updated_at", "2015-01-03 22:52:07.275904"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Unpermitted parameter: format
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 22:52:07.286616"], ["updated_at", "2015-01-03 22:52:07.286616"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title105"], ["body", "body92"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.289257"], ["updated_at", "2015-01-03 22:52:07.289257"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 22:52:07.294970"], ["updated_at", "2015-01-03 22:52:07.294970"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title106"], ["body", "body93"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.297622"], ["updated_at", "2015-01-03 22:52:07.297622"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:07.302567"], ["updated_at", "2015-01-03 22:52:07.302567"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[35mProclaim::Image Load (0.2ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 22:52:07.313034"], ["updated_at", "2015-01-03 22:52:07.313034"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body94"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.315656"], ["updated_at", "2015-01-03 22:52:07.315656"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID
----------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 22:52:07.319998"], ["updated_at", "2015-01-03 22:52:07.319998"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 22:52:07.323286"], ["updated_at", "2015-01-03 22:52:07.323286"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title108"], ["body", "body95"], ["author_id", 2], ["created_at", "2015-01-03 22:52:07.325397"], ["updated_at", "2015-01-03 22:52:07.325397"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 22:52:07.339169"], ["updated_at", "2015-01-03 22:52:07.339169"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title109"], ["body", "body96"], ["author_id", 3], ["created_at", "2015-01-03 22:52:07.341436"], ["updated_at", "2015-01-03 22:52:07.341436"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 22:52:07.352224"], ["updated_at", "2015-01-03 22:52:07.352224"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::SubscriptionTest: test_subscriptions_should_be_unique
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 22:52:07.402967"], ["updated_at", "2015-01-03 22:52:07.402967"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title111"], ["body", "body98"], ["author_id", 1], ["created_at", "2015-01-03 22:52:07.405463"], ["updated_at", "2015-01-03 22:52:07.405463"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 22:52:07.451810"], ["updated_at", "2015-01-03 22:52:07.451810"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m 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
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription
------------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email18@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 43ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription
-----------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (3.1ms)
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.1ms)
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.3ms)
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in
-----------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-03 22:52:07.893831"], ["updated_at", "2015-01-03 22:52:07.893831"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email21@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email21@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 44ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy
------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
--------------------------------------------
PostFormTest: test_should_delete_saved_image
--------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 22:52:07.966244"], ["updated_at", "2015-01-03 22:52:07.966244"]]
[1m[36m (26.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-03 22:52:07.995967"], ["updated_at", "2015-01-03 22:52:07.995967"]]
[1m[35m (46.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body100"], ["author_id", 2], ["created_at", "2015-01-03 22:52:08.045632"], ["updated_at", "2015-01-03 22:52:08.045632"]]
[1m[36m (35.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:52:08.087324"], ["updated_at", "2015-01-03 22:52:08.087324"]]
[1m[35m (51.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "test
"], ["updated_at", "2015-01-03 22:52:08.144734"], ["id", 1]]
[1m[36m (35.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (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"}
[1m[35mProclaim::Image Load (0.1ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Image Load (0.2ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1 [["post_id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", "test
\r\n\t\t
"], ["updated_at", "2015-01-03 22:52:09.000675"], ["id", 1]]
[1m[35mSQL (0.2ms)[0m DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]
[1m[36m (46.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (27.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (18.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (23.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (18.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (26.9ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (15.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (15.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (15.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (21.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------
PostFormTest: test_should_show_error_without_title
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36m (21.1ms)[0m [1mcommit transaction[0m
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)
[1m[35m (0.3ms)[0m 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)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (37.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (36.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (31.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (25.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (38.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (42.3ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (46.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
PostFormTest: test_should_delete_cached_image
---------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 22:52:10.500527"], ["updated_at", "2015-01-03 22:52:10.500527"]]
[1m[35m (35.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-03 22:52:10.550369"], ["updated_at", "2015-01-03 22:52:10.550369"]]
[1m[36m (28.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title114"], ["body", ""], ["author_id", 2], ["created_at", "2015-01-03 22:52:10.587454"], ["updated_at", "2015-01-03 22:52:10.587454"]]
[1m[35m (43.9ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
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)
[1m[36m (34.7ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (23.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (26.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (22.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (37.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (37.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (30.8ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (33.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------
PostFormTest: test_should_show_error_without_body
-------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-03 22:52:11.431286"], ["updated_at", "2015-01-03 22:52:11.431286"]]
[1m[36m (31.2ms)[0m [1mcommit transaction[0m
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)
[1m[35m (0.2ms)[0m 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (37.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (35.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (33.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (39.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (36.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (34.6ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
PostFormTest: test_should_create_post
-------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-03 22:52:12.293756"], ["updated_at", "2015-01-03 22:52:12.293756"]]
[1m[35m (32.5ms)[0m 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)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (18.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (18.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (18.0ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (17.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (38.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (31.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------------------------------------
PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image
--------------------------------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 22:52:15.448526"], ["updated_at", "2015-01-03 22:52:15.448526"]]
[1m[35m (39.3ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-03 22:52:15.494908"], ["updated_at", "2015-01-03 22:52:15.494908"]]
[1m[36m (27.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title115"], ["body", "body101"], ["author_id", 2], ["created_at", "2015-01-03 22:52:15.528783"], ["updated_at", "2015-01-03 22:52:15.528783"]]
[1m[35m (29.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36m (42.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-03 22:52:15.619120"], ["id", 1]]
[1m[35m (34.5ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
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"}
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (38.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (40.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (36.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (43.7ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.5ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (44.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (33.5ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (43.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------
SubscriptionPolicyTest: test_subscription_destroy
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 22:52:16.548349"], ["updated_at", "2015-01-03 22:52:16.548349"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email23@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
SubscriptionPolicyTest: test_subscription_unsubscribe
-----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 22:52:16.594670"], ["updated_at", "2015-01-03 22:52:16.594670"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email24@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
SubscriptionPolicyTest: test_subscription_creation
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 22:52:16.653362"], ["updated_at", "2015-01-03 22:52:16.653362"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 22:52:16.656806"], ["updated_at", "2015-01-03 22:52:16.656806"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title116"], ["body", "body102"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.659594"], ["updated_at", "2015-01-03 22:52:16.659594"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 22:52:16.663418"], ["updated_at", "2015-01-03 22:52:16.663418"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 22:52:16.670888"], ["updated_at", "2015-01-03 22:52:16.670888"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 4], ["created_at", "2015-01-03 22:52:16.673319"], ["updated_at", "2015-01-03 22:52:16.673319"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 22:52:16.678041"], ["updated_at", "2015-01-03 22:52:16.678041"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
SubscriptionPolicyTest: test_subscription_scope
-----------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 22:52:16.685628"], ["updated_at", "2015-01-03 22:52:16.685628"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
SubscriptionPolicyTest: test_subscription_update
------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-03 22:52:16.781783"], ["updated_at", "2015-01-03 22:52:16.781783"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------
PostPolicyTest: test_post_scope
-------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-03 22:52:16.829861"], ["updated_at", "2015-01-03 22:52:16.829861"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 22:52:16.832936"], ["updated_at", "2015-01-03 22:52:16.832936"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.835346"], ["updated_at", "2015-01-03 22:52:16.835346"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 22:52:16.838389"], ["updated_at", "2015-01-03 22:52:16.838389"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------
PostPolicyTest: test_post_update
--------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-03 22:52:16.847867"], ["updated_at", "2015-01-03 22:52:16.847867"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 22:52:16.850504"], ["updated_at", "2015-01-03 22:52:16.850504"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.852790"], ["updated_at", "2015-01-03 22:52:16.852790"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 22:52:16.855725"], ["updated_at", "2015-01-03 22:52:16.855725"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------
PostPolicyTest: test_post_show
------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 22:52:16.862511"], ["updated_at", "2015-01-03 22:52:16.862511"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 22:52:16.865317"], ["updated_at", "2015-01-03 22:52:16.865317"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.867766"], ["updated_at", "2015-01-03 22:52:16.867766"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 22:52:16.871227"], ["updated_at", "2015-01-03 22:52:16.871227"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------
PostPolicyTest: test_post_destroy
---------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 22:52:16.879720"], ["updated_at", "2015-01-03 22:52:16.879720"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 22:52:16.882622"], ["updated_at", "2015-01-03 22:52:16.882622"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.884953"], ["updated_at", "2015-01-03 22:52:16.884953"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 22:52:16.887839"], ["updated_at", "2015-01-03 22:52:16.887839"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------
PostPolicyTest: test_post_create
--------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-03 22:52:16.894348"], ["updated_at", "2015-01-03 22:52:16.894348"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 22:52:16.896979"], ["updated_at", "2015-01-03 22:52:16.896979"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 2], ["created_at", "2015-01-03 22:52:16.899452"], ["updated_at", "2015-01-03 22:52:16.899452"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:16 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.4ms)
Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:16 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-03 22:52:16.984115"], ["updated_at", "2015-01-03 22:52:16.984115"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:17 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.4ms)
Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:52:17 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
-------------------------------------
CommentTest: test_edit_parent_comment
-------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-03 22:52:17.063829"], ["updated_at", "2015-01-03 22:52:17.063829"]]
[1m[36m (21.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 22:52:17.090520"], ["updated_at", "2015-01-03 22:52:17.090520"]]
[1m[35m (19.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (26.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (29.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (34.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.6ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:52:18.246630"], ["id", 1]]
[1m[35m (93.2ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_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)
[1m[36m (64.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (44.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (56.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (48.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (47.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (47.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (50.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (51.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------
CommentTest: test_delete_root_comment
-------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 22:52:19.189529"], ["updated_at", "2015-01-03 22:52:19.189529"]]
[1m[36m (41.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 22:52:19.241312"], ["updated_at", "2015-01-03 22:52:19.241312"]]
[1m[35m (37.9ms)[0m commit transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (58.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 22:52:19.350360"], ["updated_at", "2015-01-03 22:52:19.350360"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (44.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (1.3ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mSQL (0.6ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]
[1m[36m (61.2ms)[0m [1mcommit transaction[0m
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 63.6ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (65.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (44.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (44.5ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (62.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (60.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (49.3ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (49.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (53.0ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (67.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------
CommentTest: test_edit_root_comment
-----------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 22:52:21.360743"], ["updated_at", "2015-01-03 22:52:21.360743"]]
[1m[36m (55.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (51.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (50.0ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-03 22:52:21.540517"], ["updated_at", "2015-01-03 22:52:21.540517"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (46.4ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (1.4ms)[0m 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]]
[1m[36m (70.8ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (53.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (38.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (38.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (36.5ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (47.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (49.8ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------------------------
CommentTest: test_should_not_have_option_to_delete_if_not_logged_in
-------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 22:52:22.828080"], ["updated_at", "2015-01-03 22:52:22.828080"]]
[1m[36m (36.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (43.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author37"], ["body", "body37"], ["post_id", 1], ["created_at", "2015-01-03 22:52:22.922756"], ["updated_at", "2015-01-03 22:52:22.922756"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (40.2ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (40.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (40.9ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (41.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (38.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (41.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (47.2ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (49.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------
CommentTest: test_leave_root_comment
------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 22:52:23.539021"], ["updated_at", "2015-01-03 22:52:23.539021"]]
[1m[35m (44.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (40.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:52:24.413327"], ["updated_at", "2015-01-03 22:52:24.413327"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (59.9ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (31.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (37.9ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (37.9ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (43.9ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (32.2ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (42.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------
CommentTest: test_cancel_button_should_remove_errors
----------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 22:52:24.990651"], ["updated_at", "2015-01-03 22:52:24.990651"]]
[1m[35m (42.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (35.9ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (46.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (38.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (29.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (29.5ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.6ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (41.2ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (33.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
---------------------------------------
CommentTest: test_delete_parent_comment
---------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36m (37.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-03 22:52:25.871125"], ["updated_at", "2015-01-03 22:52:25.871125"]]
[1m[35m (39.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (47.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.9ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (37.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.6ms)[0m 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"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (39.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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)
[1m[35m (0.5ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.9ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.3ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 2]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]
[1m[36m (53.0ms)[0m [1mcommit transaction[0m
Completed 200 OK in 73ms (Views: 0.4ms | ActiveRecord: 55.3ms)
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (26.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (33.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (30.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (33.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (37.1ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (41.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (35.9ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------
CommentTest: test_edit_child_comment
------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 22:52:27.785002"], ["updated_at", "2015-01-03 22:52:27.785002"]]
[1m[36m (45.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-03 22:52:27.837841"], ["updated_at", "2015-01-03 22:52:27.837841"]]
[1m[35m (37.3ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (39.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-03 22:52:27.934900"], ["updated_at", "2015-01-03 22:52:27.934900"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (33.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "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"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.2ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (54.9ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m 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]]
[1m[36m (71.1ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (37.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (36.9ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (38.4ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (31.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (44.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (46.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (45.2ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------
CommentTest: test_leave_two_replies
-----------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 22:52:29.474066"], ["updated_at", "2015-01-03 22:52:29.474066"]]
[1m[35m (36.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (38.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.6ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (44.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (78.1ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.3ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[35m (0.2ms)[0m 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
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (66.3ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 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)
[1m[36m (46.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (45.8ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (43.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (34.3ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (37.3ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (57.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------
CommentTest: test_reply_forms_should_be_exclusive
-------------------------------------------------
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 22:52:31.971673"], ["updated_at", "2015-01-03 22:52:31.971673"]]
[1m[36m (33.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (36.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author43"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-03 22:52:32.058669"], ["updated_at", "2015-01-03 22:52:32.058669"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (46.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.9ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (43.7ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.1ms)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (43.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (46.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (49.5ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (51.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (46.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (44.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (43.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (40.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
CommentTest: test_reply_should_fail_if_spammy
---------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 22:52:32.966916"], ["updated_at", "2015-01-03 22:52:32.966916"]]
[1m[35m (35.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (39.9ms)[0m commit transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (38.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 9ms (Views: 0.5ms | ActiveRecord: 0.3ms)
[1m[36m (45.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (42.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (49.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (34.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (37.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (38.1ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (45.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (47.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (45.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------
CommentTest: test_root_comment_should_fail_if_spammy
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 22:52:34.182833"], ["updated_at", "2015-01-03 22:52:34.182833"]]
[1m[36m (39.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (45.3ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[35m (27.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (21.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (25.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (34.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (31.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (44.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (40.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (45.6ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------------------------------------
CommentTest: test_should_not_have_option_to_edit_if_not_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 22:52:35.168900"], ["updated_at", "2015-01-03 22:52:35.168900"]]
[1m[35m (45.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (40.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (51.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (38.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (42.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (32.4ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (36.5ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (31.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (38.4ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------
CommentTest: test_delete_child_comment
--------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 22:52:35.853989"], ["updated_at", "2015-01-03 22:52:35.853989"]]
[1m[36m (37.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 22:52:35.902523"], ["updated_at", "2015-01-03 22:52:35.902523"]]
[1m[35m (36.6ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (34.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-03 22:52:35.995055"], ["updated_at", "2015-01-03 22:52:35.995055"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (32.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m 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"]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (36.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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)
[1m[35m (0.3ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 2]]
[1m[35m (27.3ms)[0m commit transaction
Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 28.7ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (21.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (22.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (25.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (24.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (40.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (25.2ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (28.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
[1m[35m (0.2ms)[0m begin transaction
---------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy
---------------------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 22:52:37.906417"], ["updated_at", "2015-01-03 22:52:37.906417"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in
-----------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 22:52:37.938899"], ["updated_at", "2015-01-03 22:52:37.938899"]]
[1m[35m (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
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)
[1m[35m (0.2ms)[0m 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"}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
BlogSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.7ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Proclaim::CommentTest: test_ensure_body_is_required
---------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 22:52:38.109818"], ["updated_at", "2015-01-03 22:52:38.109818"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 1], ["created_at", "2015-01-03 22:52:38.112800"], ["updated_at", "2015-01-03 22:52:38.112800"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::CommentTest: test_ensure_factory_is_good
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 22:52:38.118541"], ["updated_at", "2015-01-03 22:52:38.118541"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["created_at", "2015-01-03 22:52:38.120992"], ["updated_at", "2015-01-03 22:52:38.120992"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author50"], ["body", "body49"], ["post_id", 1], ["created_at", "2015-01-03 22:52:38.123235"], ["updated_at", "2015-01-03 22:52:38.123235"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Proclaim::CommentTest: test_ensure_post_is_required
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription
------------------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/subscriptions/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription
-----------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.3ms)
Completed 200 OK in 74ms (Views: 73.6ms | ActiveRecord: 0.1ms)
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (4.1ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email5@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 54ms (ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in
-----------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-03 22:54:36.706533"], ["updated_at", "2015-01-03 22:54:36.706533"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Processing by Proclaim::SubscriptionsController#create as HTML
Parameters: {"subscription"=>{"email"=>"email6@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/subscriptions/subscribed
Completed 302 Found in 40ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------------
Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy
------------------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
PostTest: test_show_should_show_author_name
-------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-03 22:54:37.107950"], ["updated_at", "2015-01-03 22:54:37.107950"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------
PostTest: test_index_should_show_post_titles
--------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-03 22:54:37.192703"], ["updated_at", "2015-01-03 22:54:37.192703"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-03 22:54:37.199270"], ["updated_at", "2015-01-03 22:54:37.199270"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (5.2ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
PostTest: test_index_should_give_option_to_edit_post_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-03 22:54:37.222138"], ["updated_at", "2015-01-03 22:54:37.222138"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-03 22:54:37.224843"], ["updated_at", "2015-01-03 22:54:37.224843"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.0ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
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
[1m[35m (0.2ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
PostTest: test_image_should_have_relative_source_path
-----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-03 22:54:37.254330"], ["updated_at", "2015-01-03 22:54:37.254330"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-03 22:54:37.261048"], ["updated_at", "2015-01-03 22:54:37.261048"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.263536"], ["updated_at", "2015-01-03 22:54:37.263536"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:37.268762"], ["updated_at", "2015-01-03 22:54:37.268762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:54:37.273070"], ["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
PostTest: test_index_should_give_option_to_create_new_post_if_logged_in
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-03 22:54:37.279568"], ["updated_at", "2015-01-03 22:54:37.279568"]]
[1m[35m (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------
PostTest: test_index_should_show_authors
----------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-03 22:54:37.293432"], ["updated_at", "2015-01-03 22:54:37.293432"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-03 22:54:37.300508"], ["updated_at", "2015-01-03 22:54:37.300508"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms)
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-03 22:54:37.320689"], ["updated_at", "2015-01-03 22:54:37.320689"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
PostTest: test_index_should_give_option_to_delete_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-03 22:54:37.339222"], ["updated_at", "2015-01-03 22:54:37.339222"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-03 22:54:37.342273"], ["updated_at", "2015-01-03 22:54:37.342273"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts"[0m
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.0ms)
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------
PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in
-------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-03 22:54:37.361539"], ["updated_at", "2015-01-03 22:54:37.361539"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.0ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
PostTest: test_index_should_show_excerpts
-----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-03 22:54:37.383072"], ["updated_at", "2015-01-03 22:54:37.383072"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "title11"], ["body", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-03 22:54:37.389389"], ["updated_at", "2015-01-03 22:54:37.389389"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.6ms)
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------
PostTest: test_index_should_show_more_link
------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-03 22:54:37.412002"], ["updated_at", "2015-01-03 22:54:37.412002"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-03 22:54:37.418964"], ["updated_at", "2015-01-03 22:54:37.418964"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 17:54:37 -0500
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.5ms)
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------
ProclaimTest: test_truth
------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in
-----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-03 22:54:37.443626"], ["updated_at", "2015-01-03 22:54:37.443626"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-03 22:54:37.448089"], ["updated_at", "2015-01-03 22:54:37.448089"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body11"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.450330"], ["updated_at", "2015-01-03 22:54:37.450330"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.452526"], ["updated_at", "2015-01-03 22:54:37.452526"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-03 22:54:37.520074"], ["updated_at", "2015-01-03 22:54:37.520074"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author4", "body"=>"body4", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]
[1m[35m (0.1ms)[0m 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
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 4]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 4]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ?[0m [["parent_id", 3]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-03 22:54:37.559640"], ["updated_at", "2015-01-03 22:54:37.559640"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-03 22:54:37.563266"], ["updated_at", "2015-01-03 22:54:37.563266"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body13"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.565448"], ["updated_at", "2015-01-03 22:54:37.565448"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author5"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.567620"], ["updated_at", "2015-01-03 22:54:37.567620"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in
----------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-03 22:54:37.582549"], ["updated_at", "2015-01-03 22:54:37.582549"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body14"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.585271"], ["updated_at", "2015-01-03 22:54:37.585271"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author6", "body"=>"body6", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-03 22:54:37.595736"], ["updated_at", "2015-01-03 22:54:37.595736"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author7", "body"=>"body7", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "body7"], ["author", "author7"], ["post_id", 2], ["created_at", "2015-01-03 22:54:37.604192"], ["updated_at", "2015-01-03 22:54:37.604192"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title20"], ["body", "body16"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.666730"], ["updated_at", "2015-01-03 22:54:37.666730"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-03 22:54:37.702472"], ["updated_at", "2015-01-03 22:54:37.702472"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author9", "body"=>"body9", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy
------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-03 22:54:37.737980"], ["updated_at", "2015-01-03 22:54:37.737980"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body10"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.744862"], ["updated_at", "2015-01-03 22:54:37.744862"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in
--------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title23"], ["body", "body19"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.766556"], ["updated_at", "2015-01-03 22:54:37.766556"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author12"], ["body", "body12"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.769288"], ["updated_at", "2015-01-03 22:54:37.769288"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>1}, "id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in
---------------------------------------------------------------------------------------
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-03 22:54:37.784756"], ["updated_at", "2015-01-03 22:54:37.784756"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title24"], ["body", "body20"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.791019"], ["updated_at", "2015-01-03 22:54:37.791019"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author13"], ["body", "body13"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.794878"], ["updated_at", "2015-01-03 22:54:37.794878"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#destroy as JSON
Parameters: {"id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-03 22:54:37.809784"], ["updated_at", "2015-01-03 22:54:37.809784"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title25"], ["body", "body21"], ["author_id", 1], ["created_at", "2015-01-03 22:54:37.812835"], ["updated_at", "2015-01-03 22:54:37.812835"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author14"], ["body", "body14"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.815888"], ["updated_at", "2015-01-03 22:54:37.815888"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author15", "body"=>"body15", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-03 22:54:37.832291"], ["updated_at", "2015-01-03 22:54:37.832291"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author17", "body"=>"body17", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 2
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1[0m [["parent_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-03 22:54:37.869151"], ["updated_at", "2015-01-03 22:54:37.869151"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Processing by Proclaim::CommentsController#create as JSON
Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-03 22:54:37.885039"], ["updated_at", "2015-01-03 22:54:37.885039"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-03 22:54:37.888752"], ["updated_at", "2015-01-03 22:54:37.888752"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body19"], ["post_id", 1], ["created_at", "2015-01-03 22:54:37.893403"], ["updated_at", "2015-01-03 22:54:37.893403"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::CommentsController#update as JSON
Parameters: {"comment"=>{"author"=>"author19", "body"=>"body19", "post_id"=>1}, "id"=>"1"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_post_if_logged_in
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-03 22:54:37.926830"], ["updated_at", "2015-01-03 22:54:37.926830"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-03 22:54:37.930273"], ["updated_at", "2015-01-03 22:54:37.930273"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body25", "title"=>"title29"}}
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_if_logged_in
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-03 22:54:37.948576"], ["updated_at", "2015-01-03 22:54:37.948576"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-03 22:54:37.952548"], ["updated_at", "2015-01-03 22:54:37.952548"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title30"], ["body", "body26"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.955142"], ["updated_at", "2015-01-03 22:54:37.955142"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-03 22:54:37.957944"], ["updated_at", "2015-01-03 22:54:37.957944"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mUser Load (0.1ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in
----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-03 22:54:37.984801"], ["updated_at", "2015-01-03 22:54:37.984801"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-03 22:54:37.988089"], ["updated_at", "2015-01-03 22:54:37.988089"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title32"], ["body", "body28"], ["author_id", 2], ["created_at", "2015-01-03 22:54:37.990261"], ["updated_at", "2015-01-03 22:54:37.990261"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in
-----------------------------------------------------------------------
Processing by Proclaim::PostsController#new as HTML
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-03 22:54:38.020115"], ["updated_at", "2015-01-03 22:54:38.020115"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-03 22:54:38.023605"], ["updated_at", "2015-01-03 22:54:38.023605"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title33"}}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title33"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.036988"], ["updated_at", "2015-01-03 22:54:38.036988"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:38.038893"], ["updated_at", "2015-01-03 22:54:38.038893"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["updated_at", "2015-01-03 22:54:38.044504"], ["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 18ms (ActiveRecord: 1.0ms)
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in
--------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-03 22:54:38.055853"], ["updated_at", "2015-01-03 22:54:38.055853"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body30"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.058472"], ["updated_at", "2015-01-03 22:54:38.058472"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-03 22:54:38.061075"], ["updated_at", "2015-01-03 22:54:38.061075"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (5.3ms)
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in
------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-03 22:54:38.078702"], ["updated_at", "2015-01-03 22:54:38.078702"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title36"], ["body", "body32"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.081440"], ["updated_at", "2015-01-03 22:54:38.081440"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-03 22:54:38.091840"], ["updated_at", "2015-01-03 22:54:38.091840"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-03 22:54:38.095025"], ["updated_at", "2015-01-03 22:54:38.095025"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.097229"], ["updated_at", "2015-01-03 22:54:38.097229"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title37"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:38.110222"], ["updated_at", "2015-01-03 22:54:38.110222"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:54:38.114316"], ["id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.0ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-03 22:54:38.124616"], ["updated_at", "2015-01-03 22:54:38.124616"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-03 22:54:38.127837"], ["updated_at", "2015-01-03 22:54:38.127837"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#create as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body34", "title"=>"title38"}, "publish"=>"true"}
Unpermitted parameter: author_id
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-03 22:54:38.147424"], ["updated_at", "2015-01-03 22:54:38.147424"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-03 22:54:38.151352"], ["updated_at", "2015-01-03 22:54:38.151352"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title39"], ["body", "body35"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.153693"], ["updated_at", "2015-01-03 22:54:38.153693"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body35", "title"=>"title39"}, "publish"=>"true", "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m 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]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 9ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_update_post_if_logged_in
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-03 22:54:38.172056"], ["updated_at", "2015-01-03 22:54:38.172056"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-03 22:54:38.175342"], ["updated_at", "2015-01-03 22:54:38.175342"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.177482"], ["updated_at", "2015-01-03 22:54:38.177482"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"2", "body"=>"body36", "title"=>"title40"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/proclaim/posts/1
Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-03 22:54:38.193909"], ["updated_at", "2015-01-03 22:54:38.193909"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-03 22:54:38.197789"], ["updated_at", "2015-01-03 22:54:38.197789"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-03 22:54:38.216475"], ["updated_at", "2015-01-03 22:54:38.216475"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title42"], ["body", "body38"], ["author_id", 3], ["created_at", "2015-01-03 22:54:38.218836"], ["updated_at", "2015-01-03 22:54:38.218836"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 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)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-03 22:54:38.233036"], ["updated_at", "2015-01-03 22:54:38.233036"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title43"], ["body", "body39"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.235681"], ["updated_at", "2015-01-03 22:54:38.235681"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#update as HTML
Parameters: {"post"=>{"author_id"=>"1", "body"=>"body39", "title"=>"title43"}, "id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Unpermitted parameter: author_id
Redirected to http://test.host/proclaim/
Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-03 22:54:38.247955"], ["updated_at", "2015-01-03 22:54:38.247955"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-03 22:54:38.261285"], ["updated_at", "2015-01-03 22:54:38.261285"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body41"], ["author_id", 1], ["created_at", "2015-01-03 22:54:38.264071"], ["updated_at", "2015-01-03 22:54:38.264071"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/proclaim/
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-03 22:54:38.276198"], ["updated_at", "2015-01-03 22:54:38.276198"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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)
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-03 22:54:38.295679"], ["updated_at", "2015-01-03 22:54:38.295679"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title47"], ["body", "body43"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.298216"], ["updated_at", "2015-01-03 22:54:38.298216"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Proclaim::PostsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 2]]
Completed 404 Not Found in 1ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-03 22:54:38.304657"], ["updated_at", "2015-01-03 22:54:38.304657"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-03 22:54:38.308164"], ["updated_at", "2015-01-03 22:54:38.308164"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title48"], ["body", "body44"], ["author_id", 2], ["created_at", "2015-01-03 22:54:38.310645"], ["updated_at", "2015-01-03 22:54:38.310645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
Processing by Proclaim::PostsController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/proclaim/posts
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Proclaim::PostsControllerTest: test_should_get_new_if_logged_in
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-03 22:54:38.327258"], ["updated_at", "2015-01-03 22:54:38.327258"]]
[1m[35m (0.0ms)[0m 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)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment
------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-03 22:54:38.429964"], ["updated_at", "2015-01-03 22:54:38.429964"]]
[1m[35m (28.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (33.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.7ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.3ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
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
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:54:43.926811"], ["updated_at", "2015-01-03 22:54:43.926811"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (61.5ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (77.7ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (80.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (61.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (116.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (69.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (63.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (49.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (71.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (77.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (58.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------------
PostSubscriptionTest: test_catch_bad_email_address
--------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-03 22:54:44.898570"], ["updated_at", "2015-01-03 22:54:44.898570"]]
[1m[35m (52.6ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (54.7ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
Completed 422 Unprocessable Entity in 20ms (Views: 0.3ms | ActiveRecord: 1.9ms)
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (59.5ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (44.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (37.0ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (38.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (39.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (38.1ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (39.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in
------------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-03 22:54:46.241560"], ["updated_at", "2015-01-03 22:54:46.241560"]]
[1m[35m (39.6ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-03 22:54:46.284369"], ["updated_at", "2015-01-03 22:54:46.284369"]]
[1m[36m (47.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (37.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:54:47.235721"], ["updated_at", "2015-01-03 22:54:47.235721"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (38.7ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1[0m [["post_id", 1]]
[1m[35m (32.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (38.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (38.0ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (30.3ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (33.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (38.6ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (28.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (35.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------------------------
PostSubscriptionTest: test_catch_lack_of_email_address
------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-03 22:54:47.759059"], ["updated_at", "2015-01-03 22:54:47.759059"]]
[1m[35m (47.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title52"], ["body", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (36.4ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
Completed 422 Unprocessable Entity in 19ms (Views: 0.3ms | ActiveRecord: 1.9ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (71.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (100.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (108.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (48.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (52.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (55.3ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (58.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
----------------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in
----------------------------------------------------------------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-03 22:54:49.158790"], ["updated_at", "2015-01-03 22:54:49.158790"]]
[1m[35m (53.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.9ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.3ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (55.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.6ms)
Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:54:50.056837"], ["updated_at", "2015-01-03 22:54:50.056837"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (60.3ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (48.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (38.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (66.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (88.8ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (92.5ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (71.1ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (63.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (60.7ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy
-----------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-03 22:54:50.870121"], ["updated_at", "2015-01-03 22:54:50.870121"]]
[1m[36m (57.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.4ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (55.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (65.3ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (54.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (38.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (37.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (43.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (38.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (46.8ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (45.9ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (43.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------------------------------------
PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy
----------------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.3ms)[0m 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"]]
[1m[36m (41.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (51.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-03 22:54:52.548556"], ["updated_at", "2015-01-03 22:54:52.548556"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (36.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (41.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (31.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (31.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (23.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (26.9ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (33.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (27.9ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (24.4ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in
-----------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-03 22:54:53.766063"], ["updated_at", "2015-01-03 22:54:53.766063"]]
[1m[35m (47.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-03 22:54:53.817556"], ["updated_at", "2015-01-03 22:54:53.817556"]]
[1m[36m (35.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (37.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (46.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.5ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (47.2ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.4ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (43.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (30.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (38.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (39.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (41.8ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (37.5ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (49.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
---------------------------------------------------------------------------------------------------
PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in
---------------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-03 22:54:55.493469"], ["updated_at", "2015-01-03 22:54:55.493469"]]
[1m[36m (41.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (35.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-03 22:54:55.582099"], ["updated_at", "2015-01-03 22:54:55.582099"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (43.4ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m 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
[1m[36m (29.5ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]
[1m[36m (22.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (15.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (15.4ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (45.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (35.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (42.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (43.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (33.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (32.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published
-----------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-03 22:54:57.084695"], ["updated_at", "2015-01-03 22:54:57.084695"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 10:54 PM UTC by first_name80 last_name80
|
|
----==_mimepart_54a873411fe39_64b799531813821--
[ActiveJob] [ActionMailer::DeliveryJob] [50f6ba58-81ff-44bb-9c39-4e0d26716082] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.77ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited
---------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] [1m[35mProclaim::Post Load (0.1ms)[0m 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 |
Written on January 03, 2015 at 10:54 PM UTC by author24
|
|
----==_mimepart_54a87341361f6_64b799531814248--
[ActiveJob] [ActionMailer::DeliveryJob] [2e157e1c-d605-4bff-a08e-25e732c9df60] Performed ActionMailer::DeliveryJob from Inline(mailers) in 36.29ms
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-03 22:54:57.230295"], ["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published
-----------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-03 22:54:57.271485"], ["updated_at", "2015-01-03 22:54:57.271485"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title60"], ["body", "body56"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.274218"], ["updated_at", "2015-01-03 22:54:57.274218"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["published_at", "2015-01-03 22:54:57.275936"], ["state", "published"], ["updated_at", "2015-01-03 22:54:57.277057"], ["id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.1ms)[0m 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] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 10:54 PM UTC by first_name82 last_name82
|
|
----==_mimepart_54a8734149fe2_64b79953181468--
[ActiveJob] [ActionMailer::DeliveryJob] [8dcd26df-b199-4e06-bdae-989dcb279e7e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.19ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription
-------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-03 22:54:57.311327"], ["updated_at", "2015-01-03 22:54:57.311327"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made
-------------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-03 22:54:57.357327"], ["updated_at", "2015-01-03 22:54:57.357327"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.408840"], ["updated_at", "2015-01-03 22:54:57.408840"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] [1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 10:54 PM UTC by author25
|
|
----==_mimepart_54a873416e80d_64b7995318152f6--
[ActiveJob] [ActionMailer::DeliveryJob] [3e741613-7246-43f8-a7d3-a7867758a9e0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.85ms
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------------------------
SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated
-------------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-03 22:54:57.502713"], ["updated_at", "2015-01-03 22:54:57.502713"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mUser Load (0.0ms)[0m 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 |
Written on January 03, 2015 at 10:54 PM UTC by first_name85 last_name85
|
|
----==_mimepart_54a87341824a3_64b79953181564c--
[ActiveJob] [ActionMailer::DeliveryJob] [e8a3d0e6-1ae4-4669-ba60-217d1ab70679] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.27ms
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::CommentTest: test_ensure_factory_is_good
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-03 22:54:57.542610"], ["updated_at", "2015-01-03 22:54:57.542610"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title64"], ["body", "body60"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.545152"], ["updated_at", "2015-01-03 22:54:57.545152"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-03 22:54:57.547476"], ["updated_at", "2015-01-03 22:54:57.547476"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Proclaim::CommentTest: test_ensure_body_is_required
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-03 22:54:57.554955"], ["updated_at", "2015-01-03 22:54:57.554955"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title65"], ["body", "body61"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.557377"], ["updated_at", "2015-01-03 22:54:57.557377"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Proclaim::CommentTest: test_ensure_post_is_required
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------
Proclaim::ImageTest: test_ensure_factory_is_good
------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-03 22:54:57.567625"], ["updated_at", "2015-01-03 22:54:57.567625"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:57.575705"], ["updated_at", "2015-01-03 22:54:57.575705"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::ImageTest: test_ensure_post_is_required
-------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Proclaim::ImageTest: test_ensure_post_validity_is_verified
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly
------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-03 22:54:57.589743"], ["updated_at", "2015-01-03 22:54:57.589743"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title67"], ["body", "body63"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.592314"], ["updated_at", "2015-01-03 22:54:57.592314"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
Proclaim::ImageTest: test_ensure_image_is_required
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-03 22:54:57.603879"], ["updated_at", "2015-01-03 22:54:57.603879"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title68"], ["body", "body64"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.606462"], ["updated_at", "2015-01-03 22:54:57.606462"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_date_requirement
------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-03 22:54:57.613229"], ["updated_at", "2015-01-03 22:54:57.613229"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title69"], ["body", "body65"], ["author_id", 1], ["created_at", "2015-01-03 22:54:57.616144"], ["updated_at", "2015-01-03 22:54:57.616144"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-03 22:54:57.619354"], ["updated_at", "2015-01-03 22:54:57.619354"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-03 22:54:57.624975"], ["updated_at", "2015-01-03 22:54:57.624975"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-03 22:54:57.630206"], ["updated_at", "2015-01-03 22:54:57.630206"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------
Proclaim::PostTest: test_ensure_body_is_required
------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-03 22:54:57.638185"], ["updated_at", "2015-01-03 22:54:57.638185"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-03 22:54:57.642794"], ["updated_at", "2015-01-03 22:54:57.642794"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-03 22:54:57.646433"], ["updated_at", "2015-01-03 22:54:57.646433"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-03 22:54:57.650672"], ["updated_at", "2015-01-03 22:54:57.650672"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-03 22:54:57.654276"], ["updated_at", "2015-01-03 22:54:57.654276"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_ensure_publication_date_when_published
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-03 22:54:57.660357"], ["updated_at", "2015-01-03 22:54:57.660357"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------
Proclaim::PostTest: test_ensure_title_is_required
-------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-03 22:54:57.669062"], ["updated_at", "2015-01-03 22:54:57.669062"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Proclaim::PostTest: test_verify_publication_can't_be_taken_back
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-03 22:54:57.674867"], ["updated_at", "2015-01-03 22:54:57.674867"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
Proclaim::PostTest: test_ensure_author_is_required
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 12345]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Proclaim::PostTest: test_verify_excerpt
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-03 22:54:57.688364"], ["updated_at", "2015-01-03 22:54:57.688364"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-03 22:54:57.700718"], ["updated_at", "2015-01-03 22:54:57.700718"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-03 22:54:57.704556"], ["updated_at", "2015-01-03 22:54:57.704556"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-03 22:54:57.708230"], ["updated_at", "2015-01-03 22:54:57.708230"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-03 22:54:57.711928"], ["updated_at", "2015-01-03 22:54:57.711928"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Proclaim::PostTest: test_ensure_factory_is_good
-----------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-03 22:54:57.715988"], ["updated_at", "2015-01-03 22:54:57.715988"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.4ms)
Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-03 22:54:57.809829"], ["updated_at", "2015-01-03 22:54:57.809829"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500
Processing by Proclaim::SubscriptionsController#unsubscribe as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms)
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 17:54:57 -0500
Processing by Proclaim::SubscriptionsController#destroy as HTML
Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"}
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe
Completed 302 Found in 2ms (ActiveRecord: 0.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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-03 22:54:57.883387"], ["updated_at", "2015-01-03 22:54:57.883387"]]
[1m[35m (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
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"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_subscriptions"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
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)
[1m[35m (0.2ms)[0m 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"}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------------------
BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in
-----------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-03 22:54:58.004345"], ["updated_at", "2015-01-03 22:54:58.004345"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 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)
[1m[35m (0.1ms)[0m 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"}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "example@example.com"], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_subscriptions"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in
----------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-03 22:54:58.087597"], ["updated_at", "2015-01-03 22:54:58.087597"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.089723"], ["updated_at", "2015-01-03 22:54:58.089723"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#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)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-03 22:54:58.107622"], ["updated_at", "2015-01-03 22:54:58.107622"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title90"], ["body", "body77"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.111150"], ["updated_at", "2015-01-03 22:54:58.111150"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-03 22:54:58.116278"], ["updated_at", "2015-01-03 22:54:58.116278"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title91"], ["body", "body78"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.118700"], ["updated_at", "2015-01-03 22:54:58.118700"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.122644"], ["updated_at", "2015-01-03 22:54:58.122644"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[35mProclaim::Image Load (0.2ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-03 22:54:58.133751"], ["updated_at", "2015-01-03 22:54:58.133751"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title92"], ["body", "body79"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.136091"], ["updated_at", "2015-01-03 22:54:58.136091"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-03 22:54:58.146679"], ["updated_at", "2015-01-03 22:54:58.146679"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title93"], ["body", "body80"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.149446"], ["updated_at", "2015-01-03 22:54:58.149446"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-03 22:54:58.153911"], ["updated_at", "2015-01-03 22:54:58.153911"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title94"], ["body", "body81"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.160307"], ["updated_at", "2015-01-03 22:54:58.160307"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#cache as JSON
Parameters: {"file"=>#>}
Unpermitted parameter: format
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-03 22:54:58.170589"], ["updated_at", "2015-01-03 22:54:58.170589"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title95"], ["body", "body82"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.172771"], ["updated_at", "2015-01-03 22:54:58.172771"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in
------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-03 22:54:58.177452"], ["updated_at", "2015-01-03 22:54:58.177452"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title96"], ["body", "body83"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.179805"], ["updated_at", "2015-01-03 22:54:58.179805"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/tmp/1420325698-25783-6684/test.jpg"}
Unpermitted parameter: format
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-03 22:54:58.189835"], ["updated_at", "2015-01-03 22:54:58.189835"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title97"], ["body", "body84"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.192271"], ["updated_at", "2015-01-03 22:54:58.192271"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in
-----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-03 22:54:58.197605"], ["updated_at", "2015-01-03 22:54:58.197605"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title98"], ["body", "body85"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.200195"], ["updated_at", "2015-01-03 22:54:58.200195"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-03 22:54:58.209024"], ["updated_at", "2015-01-03 22:54:58.209024"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title99"], ["body", "body86"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.211257"], ["updated_at", "2015-01-03 22:54:58.211257"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-03 22:54:58.215234"], ["updated_at", "2015-01-03 22:54:58.215234"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-03 22:54:58.219135"], ["updated_at", "2015-01-03 22:54:58.219135"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", "body87"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.221510"], ["updated_at", "2015-01-03 22:54:58.221510"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#create as JSON
Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.230980"], ["updated_at", "2015-01-03 22:54:58.230980"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "proclaim_images"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-03 22:54:58.236120"], ["updated_at", "2015-01-03 22:54:58.236120"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body88"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.238292"], ["updated_at", "2015-01-03 22:54:58.238292"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------------------
Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID
----------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-03 22:54:58.242326"], ["updated_at", "2015-01-03 22:54:58.242326"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-03 22:54:58.245648"], ["updated_at", "2015-01-03 22:54:58.245648"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title102"], ["body", "body89"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.247978"], ["updated_at", "2015-01-03 22:54:58.247978"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
Processing by Proclaim::ImagesController#discard as JSON
Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"}
Unpermitted parameter: format
[1m[36mProclaim::Image Load (0.1ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "proclaim_images"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-03 22:54:58.262413"], ["updated_at", "2015-01-03 22:54:58.262413"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title103"], ["body", "body90"], ["author_id", 3], ["created_at", "2015-01-03 22:54:58.264833"], ["updated_at", "2015-01-03 22:54:58.264833"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------
SubscriptionPolicyTest: test_subscription_scope
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-03 22:54:58.268968"], ["updated_at", "2015-01-03 22:54:58.268968"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------
SubscriptionPolicyTest: test_subscription_destroy
-------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-03 22:54:58.345945"], ["updated_at", "2015-01-03 22:54:58.345945"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------
SubscriptionPolicyTest: test_subscription_update
------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-03 22:54:58.386554"], ["updated_at", "2015-01-03 22:54:58.386554"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
SubscriptionPolicyTest: test_subscription_unsubscribe
-----------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-03 22:54:58.434565"], ["updated_at", "2015-01-03 22:54:58.434565"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
SubscriptionPolicyTest: test_subscription_creation
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-03 22:54:58.482597"], ["updated_at", "2015-01-03 22:54:58.482597"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-03 22:54:58.485849"], ["updated_at", "2015-01-03 22:54:58.485849"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title104"], ["body", "body91"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.488074"], ["updated_at", "2015-01-03 22:54:58.488074"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-03 22:54:58.491619"], ["updated_at", "2015-01-03 22:54:58.491619"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-03 22:54:58.499079"], ["updated_at", "2015-01-03 22:54:58.499079"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title106"], ["body", "body93"], ["author_id", 4], ["created_at", "2015-01-03 22:54:58.501409"], ["updated_at", "2015-01-03 22:54:58.501409"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-03 22:54:58.504031"], ["updated_at", "2015-01-03 22:54:58.504031"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs
------------------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-03 22:54:58.551907"], ["updated_at", "2015-01-03 22:54:58.551907"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", ""], ["published_at", "2015-01-03 22:54:58.561202"], ["state", "published"], ["updated_at", "2015-01-03 22:54:58.562871"], ["id", 1]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
|
Written on January 03, 2015 at 10:54 PM UTC by first_name140 last_name140
|
|
----==_mimepart_54a873429075b_64b7995318178b4--
[ActiveJob] [ActionMailer::DeliveryJob] [64c3accf-0a9f-4eac-88ad-1472207b4580] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.01ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (1.4ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 35.2ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Proclaim::SubscriptionMailerTest: test_welcome_email
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
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
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_post_notification_email
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "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"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [1m[35mProclaim::Post Load (0.1ms)[0m 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] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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 |
Written on January 03, 2015 at 10:54 PM UTC by first_name141 last_name141
|
|
----==_mimepart_54a87342bf3e2_64b7995318186f--
[ActiveJob] [ActionMailer::DeliveryJob] [dde9ca4c-7026-4614-b817-ce77f01fe57c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.93ms
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms)
Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.8ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Proclaim::SubscriptionMailerTest: test_new_comment_notification_email
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-03 22:54:58.821957"], ["updated_at", "2015-01-03 22:54:58.821957"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title110"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-03 22:54:58.824498"], ["updated_at", "2015-01-03 22:54:58.824498"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-03 22:54:58.867017"], ["updated_at", "2015-01-03 22:54:58.867017"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title111"], ["body", "body98"], ["author_id", 2], ["created_at", "2015-01-03 22:54:58.869474"], ["updated_at", "2015-01-03 22:54:58.869474"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body29"], ["post_id", 2], ["created_at", "2015-01-03 22:54:58.871493"], ["updated_at", "2015-01-03 22:54:58.871493"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m 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
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
--------------------------------------------
PostFormTest: test_should_delete_saved_image
--------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-03 22:54:58.908167"], ["updated_at", "2015-01-03 22:54:58.908167"]]
[1m[35m (22.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-03 22:54:58.935558"], ["updated_at", "2015-01-03 22:54:58.935558"]]
[1m[36m (16.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (17.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:54:58.989731"], ["updated_at", "2015-01-03 22:54:58.989731"]]
[1m[36m (28.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mUPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ?[0m [["body", "test
"], ["updated_at", "2015-01-03 22:54:59.030282"], ["id", 1]]
[1m[35m (28.5ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
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"}
[1m[36mProclaim::Image Load (0.3ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Image Load (0.2ms)[0m [1mSELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? AND "proclaim_images"."id" = 1[0m [["post_id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "test
\r\n\t\t
"], ["updated_at", "2015-01-03 22:54:59.753150"], ["id", 1]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ?[0m [["id", 1]]
[1m[35m (26.7ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (45.9ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (35.0ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (35.0ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (53.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (63.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (37.8ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (37.1ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (41.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------------------
PostFormTest: test_should_show_error_without_body
-------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (48.6ms)[0m 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)
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (61.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (69.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (80.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (52.6ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (51.0ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (51.1ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
--------------------------------------------------------------------------
PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image
--------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36m (52.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
[1m[35m (50.9ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36m (52.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-03 22:55:01.597640"], ["updated_at", "2015-01-03 22:55:01.597640"]]
[1m[35m (47.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-03 22:55:01.651741"], ["id", 1]]
[1m[36m (52.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
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"}
[1m[35mProclaim::Image Load (0.1ms)[0m SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
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)
[1m[35m (42.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (29.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (35.8ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (32.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (40.3ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (42.9ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (39.9ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------------------
PostFormTest: test_should_show_error_without_title
--------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-03 22:55:02.763391"], ["updated_at", "2015-01-03 22:55:02.763391"]]
[1m[35m (30.2ms)[0m 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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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)
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (34.0ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (27.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (53.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (41.7ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (30.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (46.0ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (44.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
---------------------------------------------
PostFormTest: test_should_delete_cached_image
---------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m 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"]]
[1m[36m (32.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-03 22:55:03.785516"], ["updated_at", "2015-01-03 22:55:03.785516"]]
[1m[35m (48.2ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.0ms)[0m 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"]]
[1m[36m (50.9ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
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)
[1m[35m (34.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.8ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (33.8ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (35.2ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (40.9ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (45.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
PostFormTest: test_should_create_post
-------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-03 22:55:04.645615"], ["updated_at", "2015-01-03 22:55:04.645615"]]
[1m[35m (37.5ms)[0m 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)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_posts"[0m
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"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (39.7ms)[0m 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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "proclaim_posts"
[1m[36m (38.8ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (29.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (33.7ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (36.4ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (49.9ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.3ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (42.4ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (46.3ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "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] [1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1[0m
[1m[35mProclaim::Post Load (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-03 22:55:06.121952"], ["updated_at", "2015-01-03 22:55:06.121952"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "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] [1m[35mProclaim::Subscription Load (0.1ms)[0m 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] [1m[36mProclaim::Post Load (0.0ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "email35@example.com"], ["created_at", "2015-01-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] [1m[35mProclaim::Subscription Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Proclaim::SubscriptionTest: test_subscriptions_should_be_unique
---------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
[ActiveJob] [ActionMailer::DeliveryJob] [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
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mProclaim::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-03 22:55:06.249823"], ["updated_at", "2015-01-03 22:55:06.249823"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title116"], ["body", "body102"], ["author_id", 1], ["created_at", "2015-01-03 22:55:06.252259"], ["updated_at", "2015-01-03 22:55:06.252259"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m 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] [1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1[0m [["id", 2]]
[ActiveJob] [ActionMailer::DeliveryJob] [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] [1m[35mProclaim::Post Load (0.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mProclaim::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
CommentPolicyTest: test_comment_destroy
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-03 22:55:06.293687"], ["updated_at", "2015-01-03 22:55:06.293687"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-03 22:55:06.296516"], ["updated_at", "2015-01-03 22:55:06.296516"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.298675"], ["updated_at", "2015-01-03 22:55:06.298675"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author31"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.300858"], ["updated_at", "2015-01-03 22:55:06.300858"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------
CommentPolicyTest: test_comment_scope
-------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-03 22:55:06.306956"], ["updated_at", "2015-01-03 22:55:06.306956"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-03 22:55:06.309713"], ["updated_at", "2015-01-03 22:55:06.309713"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body31"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.314164"], ["updated_at", "2015-01-03 22:55:06.314164"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-03 22:55:06.329255"], ["updated_at", "2015-01-03 22:55:06.329255"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title119"], ["body", "body105"], ["author_id", 3], ["created_at", "2015-01-03 22:55:06.331717"], ["updated_at", "2015-01-03 22:55:06.331717"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_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"]]
[1m[36mProclaim::Subscription Load (0.0ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 2]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments"[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------
CommentPolicyTest: test_comment_creation
----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-03 22:55:06.340400"], ["updated_at", "2015-01-03 22:55:06.340400"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-03 22:55:06.343173"], ["updated_at", "2015-01-03 22:55:06.343173"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-03 22:55:06.349537"], ["updated_at", "2015-01-03 22:55:06.349537"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title121"], ["body", "body107"], ["author_id", 3], ["created_at", "2015-01-03 22:55:06.351883"], ["updated_at", "2015-01-03 22:55:06.351883"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------
CommentPolicyTest: test_comment_update
--------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-03 22:55:06.355229"], ["updated_at", "2015-01-03 22:55:06.355229"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-03 22:55:06.358232"], ["updated_at", "2015-01-03 22:55:06.358232"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.360335"], ["updated_at", "2015-01-03 22:55:06.360335"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author36"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.362810"], ["updated_at", "2015-01-03 22:55:06.362810"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------
PostPolicyTest: test_post_show
------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-03 22:55:06.369792"], ["updated_at", "2015-01-03 22:55:06.369792"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-03 22:55:06.372091"], ["updated_at", "2015-01-03 22:55:06.372091"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title123"], ["body", "body109"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.374098"], ["updated_at", "2015-01-03 22:55:06.374098"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-03 22:55:06.376678"], ["updated_at", "2015-01-03 22:55:06.376678"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------
PostPolicyTest: test_post_destroy
---------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-03 22:55:06.382579"], ["updated_at", "2015-01-03 22:55:06.382579"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-03 22:55:06.385402"], ["updated_at", "2015-01-03 22:55:06.385402"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title125"], ["body", "body111"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.387712"], ["updated_at", "2015-01-03 22:55:06.387712"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-03 22:55:06.390398"], ["updated_at", "2015-01-03 22:55:06.390398"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------
PostPolicyTest: test_post_update
--------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-03 22:55:06.396018"], ["updated_at", "2015-01-03 22:55:06.396018"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-03 22:55:06.398723"], ["updated_at", "2015-01-03 22:55:06.398723"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title127"], ["body", "body113"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.401021"], ["updated_at", "2015-01-03 22:55:06.401021"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-03 22:55:06.403591"], ["updated_at", "2015-01-03 22:55:06.403591"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------
PostPolicyTest: test_post_scope
-------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-03 22:55:06.409191"], ["updated_at", "2015-01-03 22:55:06.409191"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-03 22:55:06.411523"], ["updated_at", "2015-01-03 22:55:06.411523"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title129"], ["body", "body115"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.413855"], ["updated_at", "2015-01-03 22:55:06.413855"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-03 22:55:06.416945"], ["updated_at", "2015-01-03 22:55:06.416945"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts"
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------
PostPolicyTest: test_post_create
--------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-03 22:55:06.424381"], ["updated_at", "2015-01-03 22:55:06.424381"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-03 22:55:06.426845"], ["updated_at", "2015-01-03 22:55:06.426845"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "title131"], ["body", "body117"], ["author_id", 2], ["created_at", "2015-01-03 22:55:06.428810"], ["updated_at", "2015-01-03 22:55:06.428810"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
-----------------------------------------------------------------
CommentTest: test_should_not_have_option_to_edit_if_not_logged_in
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-03 22:55:06.435749"], ["updated_at", "2015-01-03 22:55:06.435749"]]
[1m[35m (32.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.1ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.2ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (34.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-03 22:55:06.515122"], ["updated_at", "2015-01-03 22:55:06.515122"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (31.6ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[36m (32.4ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (34.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (29.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (33.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (44.6ms)[0m DELETE FROM "users";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (45.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (32.7ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (32.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-------------------------------------------------
CommentTest: test_reply_forms_should_be_exclusive
-------------------------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-03 22:55:07.055145"], ["updated_at", "2015-01-03 22:55:07.055145"]]
[1m[36m (43.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (35.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (33.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (40.1ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.3ms)
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_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)
[1m[35m (40.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (41.5ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (34.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (34.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (36.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (33.0ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (35.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (41.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (34.2ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
CommentTest: test_edit_parent_comment
-------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-03 22:55:07.956553"], ["updated_at", "2015-01-03 22:55:07.956553"]]
[1m[35m (23.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-03 22:55:07.987928"], ["updated_at", "2015-01-03 22:55:07.987928"]]
[1m[36m (26.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (28.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author40"], ["body", "body39"], ["post_id", 1], ["created_at", "2015-01-03 22:55:08.050626"], ["updated_at", "2015-01-03 22:55:08.050626"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (32.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.5ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (30.6ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSQL (3.2ms)[0m 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]]
[1m[36m (55.1ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.5ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (43.0ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (25.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (39.8ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (34.7ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (29.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (34.3ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (31.7ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------------
CommentTest: test_reply_should_fail_if_spammy
---------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-03 22:55:09.474871"], ["updated_at", "2015-01-03 22:55:09.474871"]]
[1m[35m (32.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.9ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (36.5ms)[0m commit transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.8ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.0ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (37.0ms)[0m 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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.5ms)[0m 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)
[1m[36m (49.6ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (46.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (37.1ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (39.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (33.6ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (42.8ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (42.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (41.6ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (41.4ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------
CommentTest: test_root_comment_should_fail_if_spammy
----------------------------------------------------
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.9ms)[0m 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"]]
[1m[36m (35.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (40.5ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
[1m[35m (69.1ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (39.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (34.6ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.7ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (49.9ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (44.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (34.7ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (39.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
------------------------------------
CommentTest: test_edit_child_comment
------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-03 22:55:11.740528"], ["updated_at", "2015-01-03 22:55:11.740528"]]
[1m[35m (34.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-03 22:55:11.778888"], ["updated_at", "2015-01-03 22:55:11.778888"]]
[1m[36m (42.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (47.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author43"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-03 22:55:11.879500"], ["updated_at", "2015-01-03 22:55:11.879500"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (38.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (51.3ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:55:12.675166"], ["id", 2]]
[1m[35m (79.1ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (60.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (39.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (42.9ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (24.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (36.7ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (24.4ms)[0m DELETE FROM "users";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (37.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (30.9ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (39.6ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
-----------------------------------
CommentTest: test_leave_two_replies
-----------------------------------
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-03 22:55:13.389905"], ["updated_at", "2015-01-03 22:55:13.389905"]]
[1m[36m (48.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.2ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (32.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (35.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:14.324714"], ["updated_at", "2015-01-03 22:55:14.324714"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[35m (0.3ms)[0m INSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35m (31.3ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.3ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 2"], ["author", "Reply Author 2"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-03 22:55:15.271889"], ["updated_at", "2015-01-03 22:55:15.271889"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 3, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]
[1m[36m (43.3ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 3]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (46.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.9ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (37.1ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (45.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (30.0ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (27.6ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (40.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (34.5ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (45.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------------------------------------
CommentTest: test_should_not_have_option_to_delete_if_not_logged_in
-------------------------------------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-03 22:55:15.878200"], ["updated_at", "2015-01-03 22:55:15.878200"]]
[1m[35m (41.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.7ms)[0m 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"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL[0m
[1m[35m (38.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body45"], ["post_id", 1], ["created_at", "2015-01-03 22:55:15.972124"], ["updated_at", "2015-01-03 22:55:15.972124"]]
[1m[36mProclaim::Subscription Load (0.1ms)[0m [1mSELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ?[0m [["post_id", 1]]
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35m (36.8ms)[0m 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"}
[1m[36mProclaim::Post Load (0.4ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC[0m [["post_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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)
[1m[36m (39.1ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (37.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (48.2ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (27.8ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (30.9ms)[0m DELETE FROM "users";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.6ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (32.2ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (29.2ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
------------------------------------
CommentTest: test_leave_root_comment
------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-03 22:55:16.549275"], ["updated_at", "2015-01-03 22:55:16.549275"]]
[1m[36m (44.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (30.6ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (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"}
[1m[36mProclaim::Post Load (0.2ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-03 22:55:17.252665"], ["updated_at", "2015-01-03 22:55:17.252665"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (50.4ms)[0m [1mcommit transaction[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]]
[1m[36mProclaim::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
[1m[35mProclaim::Post Load (0.2ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[36m (40.3ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (36.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (26.3ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (33.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (29.0ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (33.3ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (40.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (35.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (29.4ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';
----------------------------------------------------
CommentTest: test_cancel_button_should_remove_errors
----------------------------------------------------
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-03 22:55:17.813306"], ["updated_at", "2015-01-03 22:55:17.813306"]]
[1m[36m (36.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (44.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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"}
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 422 Unprocessable Entity in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)
[1m[35m (56.0ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.4ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (37.6ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (35.1ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (43.5ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (45.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (43.4ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (61.5ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-----------------------------------
CommentTest: test_edit_root_comment
-----------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-03 22:55:18.818460"], ["updated_at", "2015-01-03 22:55:18.818460"]]
[1m[35m (59.4ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-03 22:55:18.887288"], ["updated_at", "2015-01-03 22:55:18.887288"]]
[1m[36m (40.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (41.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["author", "author47"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-03 22:55:18.990783"], ["updated_at", "2015-01-03 22:55:18.990783"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (47.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.5ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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"}
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSQL (0.3ms)[0m [1mUPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ?[0m [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-03 22:55:19.556529"], ["id", 1]]
[1m[35m (52.1ms)[0m commit transaction
[1m[36mProclaim::Comment Load (0.2ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC[0m [["ancestor_id", 1]]
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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)
[1m[35m (31.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (29.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (45.8ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (31.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (34.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.6ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (30.8ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (42.0ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (36.3ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
-------------------------------------
CommentTest: test_delete_root_comment
-------------------------------------
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-03 22:55:20.105711"], ["updated_at", "2015-01-03 22:55:20.105711"]]
[1m[35m (38.5ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-03 22:55:20.152455"], ["updated_at", "2015-01-03 22:55:20.152455"]]
[1m[36m (37.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (47.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (31.7ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35m (0.2ms)[0m 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"}
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (1.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (28.6ms)[0m commit transaction
Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 31.1ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (21.2ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (19.6ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (15.3ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (15.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (17.4ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (41.4ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (32.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (31.6ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (34.0ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
---------------------------------------
CommentTest: test_delete_parent_comment
---------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-03 22:55:21.970078"], ["updated_at", "2015-01-03 22:55:21.970078"]]
[1m[35m (33.1ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-03 22:55:22.013915"], ["updated_at", "2015-01-03 22:55:22.013915"]]
[1m[36m (38.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (31.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.1ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (42.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["author", "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"]]
[1m[35mSQL (1.2ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (50.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms)
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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)
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 17:55:22 -0500
Processing by Proclaim::CommentsController#destroy as JS
Parameters: {"id"=>"1"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.9ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 1
) AS x )
OR descendant_id = 1
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 1]]
[1m[35mProclaim::Comment Load (0.1ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Post Load (0.1ms)[0m [1mSELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mSQL (0.5ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ?[0m [["id", 1]]
[1m[35m (34.1ms)[0m commit transaction
Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 36.6ms)
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
[1m[35m (33.6ms)[0m DELETE FROM "proclaim_posts";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (36.0ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_posts';
[1m[36m (27.7ms)[0m [1mDELETE FROM "proclaim_comments";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comments';[0m
[1m[35m (35.3ms)[0m DELETE FROM "proclaim_comment_hierarchies";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';
[1m[36m (30.1ms)[0m [1mDELETE FROM "users";[0m
[1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (43.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (33.2ms)[0m DELETE FROM "proclaim_subscriptions";
[1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';
[1m[36m (43.4ms)[0m [1mDELETE FROM "proclaim_images";[0m
[1m[35m (0.6ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_images';[0m
--------------------------------------
CommentTest: test_delete_child_comment
--------------------------------------
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-03 22:55:23.990657"], ["updated_at", "2015-01-03 22:55:23.990657"]]
[1m[35m (37.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-03 22:55:24.033188"], ["updated_at", "2015-01-03 22:55:24.033188"]]
[1m[36m (36.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["title", "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"]]
[1m[35mProclaim::Subscription Load (0.3ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL
[1m[36m (51.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mProclaim::Subscription Load (0.0ms)[0m SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?)[0m [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]]
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]
[1m[36m (42.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.6ms)[0m INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]
[1m[36m (0.2ms)[0m [1mINSERT INTO "proclaim_comment_hierarchies"
(ancestor_id, descendant_id, generations)
SELECT x.ancestor_id, 2, x.generations + 1
FROM "proclaim_comment_hierarchies" x
WHERE x.descendant_id = 1
[0m
[1m[35mProclaim::Comment Load (0.0ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]
[1m[36m (40.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mProclaim::Post Load (0.4ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN (
SELECT descendant_id, MAX(generations) as depth
FROM "proclaim_comment_hierarchies"
GROUP BY descendant_id
) AS generation_depth
ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1[0m [["post_id", 1], ["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mProclaim::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1[0m [["parent_id", 1]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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)
[1m[35mProclaim::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]]
Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.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)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "proclaim_comments"[0m
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"}
[1m[35mProclaim::Comment Load (0.2ms)[0m SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mProclaim::Post Load (0.1ms)[0m SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35m (1.0ms)[0m DELETE FROM "proclaim_comment_hierarchies"
WHERE descendant_id IN (
SELECT DISTINCT descendant_id
FROM (SELECT descendant_id
FROM "proclaim_comment_hierarchies"
WHERE ancestor_id = 2
) AS x )
OR descendant_id = 2
[1m[36mProclaim::Comment Load (0.1ms)[0m [1mSELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC[0m [["parent_id", 2]]
[1m[35mSQL (0.6ms)[0m DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]
[1m[36m (51.0ms)[0m [1mcommit transaction[0m
Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 53.2ms)
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "proclaim_comments"
[1m[36m (30.9ms)[0m [1mDELETE FROM "proclaim_posts";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (20.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_posts';[0m
[1m[35m (41.6ms)[0m DELETE FROM "proclaim_comments";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (35.7ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_comments';
[1m[36m (32.5ms)[0m [1mDELETE FROM "proclaim_comment_hierarchies";[0m
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';[0m
[1m[35m (30.8ms)[0m DELETE FROM "users";
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (29.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
[1m[36m (33.3ms)[0m [1mDELETE FROM "proclaim_subscriptions";[0m
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';[0m
[1m[35m (37.0ms)[0m DELETE FROM "proclaim_images";
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'proclaim_images';