(24.1ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)   (0.1ms) select sqlite_version(*)  (16.4ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.3ms) SELECT sql FROM sqlite_master WHERE name='comment_anc_desc_udx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='comment_anc_desc_udx' AND type='index'  (16.8ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id")  (17.2ms) CREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (17.0ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id")  (16.9ms) 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)  (21.6ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id")  (17.9ms) 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)  (18.0ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.3ms) 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'  (16.6ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state")  (17.7ms) CREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (18.6ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email")  (0.3ms) 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'  (17.0ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (17.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (22.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (37.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (16.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222224905')  (16.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141117214323') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (22.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (14.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProclaimPosts (20141108222616)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "proclaim_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "title" varchar DEFAULT '' NOT NULL, "body" text DEFAULT '' NOT NULL, "state" varchar DEFAULT 'draft' NOT NULL, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) CREATE INDEX "index_proclaim_posts_on_author_id" ON "proclaim_posts" ("author_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_proclaim_posts_on_author_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_posts_on_author_id' AND type='index'  (0.1ms) CREATE INDEX "index_proclaim_posts_on_state" ON "proclaim_posts" ("state") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141108222616"]]  (15.2ms) commit transaction Migrating to CreateProclaimComments (20141114235359)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "proclaim_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "parent_id" integer, "author" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) CREATE INDEX "index_proclaim_comments_on_post_id" ON "proclaim_comments" ("post_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114235359"]]  (20.1ms) commit transaction Migrating to CreateProclaimCommentHierarchies (20141115022230)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "proclaim_comment_hierarchies" ("ancestor_id" integer NOT NULL, "descendant_id" integer NOT NULL, "generations" integer NOT NULL)  (0.5ms) CREATE UNIQUE INDEX "comment_anc_desc_udx" ON "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations")  (0.2ms) SELECT sql FROM sqlite_master WHERE name='comment_anc_desc_udx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='comment_anc_desc_udx' AND type='index'  (0.2ms) CREATE INDEX "comment_desc_idx" ON "proclaim_comment_hierarchies" ("descendant_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141115022230"]]  (20.6ms) commit transaction Migrating to CreateUsers (20141117214323)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117214323"]]  (22.4ms) commit transaction Migrating to CreateProclaimSubscriptions (20141210234057)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "proclaim_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_proclaim_subscriptions_on_post_id" ON "proclaim_subscriptions" ("post_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index'   (0.6ms) CREATE UNIQUE INDEX "index_proclaim_subscriptions_on_post_id_and_email" ON "proclaim_subscriptions" ("post_id", "email") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141210234057"]]  (16.8ms) commit transaction Migrating to CreateProclaimImages (20141222224905)  (0.1ms) begin transaction  (1.4ms) CREATE TABLE "proclaim_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "image" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_proclaim_images_on_post_id" ON "proclaim_images" ("post_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222224905"]]  (15.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='comment_desc_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='comment_desc_idx' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='comment_anc_desc_udx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='comment_anc_desc_udx' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proclaim_comments_on_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_comments_on_post_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_proclaim_images_on_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_images_on_post_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proclaim_posts_on_state' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_posts_on_state' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_proclaim_posts_on_author_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_posts_on_author_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_subscriptions_on_post_id_and_email' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_proclaim_subscriptions_on_post_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-04 02:20:20.929058"], ["updated_at", "2015-01-04 02:20:20.929058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:20 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (2001.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (2011.0ms) Completed 200 OK in 3235ms (Views: 3194.8ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:24 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-04 02:20:24.309828"], ["updated_at", "2015-01-04 02:20:24.309828"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7d543ec3-c862-4a2b-811b-639b0f271b7d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (43.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 421.5ms [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Sent mail to example@example.com (51.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Date: Sat, 03 Jan 2015 21:20:24 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a368eadc4_6f85104dffc741b3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a368df5a6_6f85104dffc74076"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a368df5a6_6f85104dffc74076 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a368df5a6_6f85104dffc74076 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a368df5a6_6f85104dffc74076-- [ActiveJob] [ActionMailer::DeliveryJob] [7d543ec3-c862-4a2b-811b-639b0f271b7d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 473.83ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 708ms (ActiveRecord: 1.0ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 21:20:24 -0500 Processing by Proclaim::SubscriptionsController#subscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.3ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_not_logged_in --------------------------------------------------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:24 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:24 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-04 02:20:24.994970"], ["updated_at", "2015-01-04 02:20:24.994970"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4d198ced-7764-4c78-85c8-c040a2039e49) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 63.1ms [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Date: Sat, 03 Jan 2015 21:20:25 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a369f95c_6f85104dffc743e5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a369ed5f_6f85104dffc742bb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a369ed5f_6f85104dffc742bb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a369ed5f_6f85104dffc742bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a369ed5f_6f85104dffc742bb-- [ActiveJob] [ActionMailer::DeliveryJob] [4d198ced-7764-4c78-85c8-c040a2039e49] Performed ActionMailer::DeliveryJob from Inline(mailers) in 67.02ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 74ms (ActiveRecord: 0.8ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::SubscriptionsController#subscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-04 02:20:25.074606"], ["updated_at", "2015-01-04 02:20:25.074606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"4"}, "commit"=>"Subscribe"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-04 02:20:25.129014"], ["updated_at", "2015-01-04 02:20:25.129014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-04 02:20:25.135581"], ["updated_at", "2015-01-04 02:20:25.135581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-04 02:20:25.139727"], ["updated_at", "2015-01-04 02:20:25.139727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-04 02:20:25.144483"], ["updated_at", "2015-01-04 02:20:25.144483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-04 02:20:25.148142"], ["updated_at", "2015-01-04 02:20:25.148142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-04 02:20:25.153653"], ["updated_at", "2015-01-04 02:20:25.153653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-04 02:20:25.156790"], ["updated_at", "2015-01-04 02:20:25.156790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-04 02:20:25.160142"], ["updated_at", "2015-01-04 02:20:25.160142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-04 02:20:25.163433"], ["updated_at", "2015-01-04 02:20:25.163433"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-04 02:20:25.203879"], ["updated_at", "2015-01-04 02:20:25.203879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-04 02:20:25.207756"], ["updated_at", "2015-01-04 02:20:25.207756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-04 02:20:25.213338"], ["updated_at", "2015-01-04 02:20:25.213338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title11"], ["body", "body2"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.215063"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.217468"], ["updated_at", "2015-01-04 02:20:25.217468"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-04 02:20:25.233242"], ["updated_at", "2015-01-04 02:20:25.233242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "body5"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.235231"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.236841"], ["updated_at", "2015-01-04 02:20:25.236841"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-04 02:20:25.241695"], ["updated_at", "2015-01-04 02:20:25.241695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body6"], ["author_id", 1], ["created_at", "2015-01-04 02:20:25.244557"], ["updated_at", "2015-01-04 02:20:25.244557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-04 02:20:25.248556"], ["updated_at", "2015-01-04 02:20:25.248556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title16"], ["body", "body7"], ["author_id", 1], ["created_at", "2015-01-04 02:20:25.251324"], ["updated_at", "2015-01-04 02:20:25.251324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-04 02:20:25.254416"], ["updated_at", "2015-01-04 02:20:25.254416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-04 02:20:25.258645"], ["updated_at", "2015-01-04 02:20:25.258645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-04 02:20:25.263579"], ["updated_at", "2015-01-04 02:20:25.263579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title19"], ["body", "body10"], ["author_id", 4], ["published_at", "2015-01-04 02:20:25.265226"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.266815"], ["updated_at", "2015-01-04 02:20:25.266815"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-04 02:20:25.274486"], ["updated_at", "2015-01-04 02:20:25.274486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title20"], ["body", "Molestiae ut minima veniam soluta quisquam. Voluptatem expedita beatae illo sed. Cupiditate delectus eum. Debitis et non. Dolor dolore esse reiciendis rerum ducimus impedit at. Ullam vel nulla et officia et cumque deserunt. Labore qui molestias sapiente a. Numquam nemo voluptatibus pariatur ut ex. Dolorem nisi qui consequuntur qui consectetur distinctio. Maxime commodi ut eius. Dicta unde minima et quae consectetur et dolores. Delectus itaque aut et placeat. Ipsa natus consequatur itaque debitis. In placeat omnis voluptatem praesentium molestias dolorem. Quasi dolores perferendis aut et eius quia. Voluptatem accusantium earum sit id dolores eos. Culpa et quod dolorum voluptate molestias nam. Voluptas sit totam non quos temporibus suscipit sed. Repudiandae nam illo vero nostrum qui quia ullam. Animi reprehenderit repudiandae. Impedit laboriosam minima voluptates omnis. Quos eum deserunt voluptatem. Reprehenderit quisquam deserunt consequatur nesciunt assumenda eum. Voluptatem omnis voluptatibus officiis et inventore unde dolores. Cum ut cupiditate eius. Suscipit dolorem a qui voluptas blanditiis totam ea. Dolorem et ab exercitationem. Fuga occaecati impedit debitis. Consequatur officiis quibusdam amet deserunt neque ex. Quasi reiciendis esse cupiditate veniam tempore. Eius ipsum minus non officiis. Sed id laboriosam earum accusantium et quibusdam. Cumque porro dolor ratione quis asperiores. Vel modi totam. Sapiente quaerat quisquam praesentium iure officia sunt recusandae. Rerum minima officia et qui accusantium eveniet molestiae. Deserunt beatae provident. Qui ipsa aut nobis dolor voluptatem ut nihil. Est incidunt molestiae sapiente porro ab ipsa. Totam reprehenderit assumenda sed. Earum ducimus odit. Dolore minima ex ut. Nemo facilis animi architecto. Libero impedit accusamus voluptatibus temporibus distinctio ullam. Molestias iure consequatur odit labore non commodi dolorem. Molestiae delectus dolorem ea consequatur quia. Officiis reiciendis veritatis tempora et. Architecto dignissimos quas voluptatum. Et rem in consequatur necessitatibus sunt autem neque. Ut aut laudantium laborum ea adipisci ut qui."], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.276424"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.278039"], ["updated_at", "2015-01-04 02:20:25.278039"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-04 02:20:25.282042"], ["updated_at", "2015-01-04 02:20:25.282042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title21"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.283372"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.284767"], ["updated_at", "2015-01-04 02:20:25.284767"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (6.2ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-04 02:20:25.316316"], ["updated_at", "2015-01-04 02:20:25.316316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title22"], ["body", "body11"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.318121"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.319554"], ["updated_at", "2015-01-04 02:20:25.319554"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (47.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (73.4ms) Completed 200 OK in 77ms (Views: 74.9ms | ActiveRecord: 0.8ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-04 02:20:25.447900"], ["updated_at", "2015-01-04 02:20:25.447900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-04 02:20:25.461579"], ["updated_at", "2015-01-04 02:20:25.461579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title23"], ["body", "body12"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.463329"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.464792"], ["updated_at", "2015-01-04 02:20:25.464792"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-04 02:20:25.482000"], ["updated_at", "2015-01-04 02:20:25.482000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title24"], ["body", "body13"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.483744"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.485221"], ["updated_at", "2015-01-04 02:20:25.485221"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.0ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-04 02:20:25.501116"], ["updated_at", "2015-01-04 02:20:25.501116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-04 02:20:25.509717"], ["updated_at", "2015-01-04 02:20:25.509717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title25"], ["body", "body14"], ["author_id", 2], ["created_at", "2015-01-04 02:20:25.512471"], ["updated_at", "2015-01-04 02:20:25.512471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:25.517891"], ["updated_at", "2015-01-04 02:20:25.517891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-04 02:20:25.558492"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-04 02:20:25.565663"], ["updated_at", "2015-01-04 02:20:25.565663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-04 02:20:25.568711"], ["updated_at", "2015-01-04 02:20:25.568711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title26"], ["body", "body15"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.570110"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.571500"], ["updated_at", "2015-01-04 02:20:25.571500"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in ------------------------------------------------------------------------------- Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-04 02:20:25.600142"], ["updated_at", "2015-01-04 02:20:25.600142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "body16"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.601957"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.603352"], ["updated_at", "2015-01-04 02:20:25.603352"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-04 02:20:25.607170"], ["updated_at", "2015-01-04 02:20:25.607170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title28"], ["body", "body17"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.608397"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.609912"], ["updated_at", "2015-01-04 02:20:25.609912"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.7ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-04 02:20:25.629534"], ["updated_at", "2015-01-04 02:20:25.629534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title29"], ["body", "body18"], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.631380"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.632840"], ["updated_at", "2015-01-04 02:20:25.632840"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-04 02:20:25.636590"], ["updated_at", "2015-01-04 02:20:25.636590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title30"], ["body", "body19"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.637844"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.639211"], ["updated_at", "2015-01-04 02:20:25.639211"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-04 02:20:25.657634"], ["updated_at", "2015-01-04 02:20:25.657634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-04 02:20:25.660768"], ["updated_at", "2015-01-04 02:20:25.660768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body20"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.662232"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.663625"], ["updated_at", "2015-01-04 02:20:25.663625"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-04 02:20:25.682431"], ["updated_at", "2015-01-04 02:20:25.682431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title32"], ["body", "At ut perspiciatis necessitatibus laudantium aut omnis aut. Qui minima laudantium. Iusto cum fuga ut. Voluptates velit aliquid. Suscipit ullam nisi praesentium ea omnis facere. Tempora aspernatur consequuntur. Est eum culpa modi praesentium est. Occaecati maxime amet. Maxime illum quia suscipit minima accusantium. Molestiae iusto velit. Qui dolores accusamus voluptates et minima praesentium. Dolores neque est repellendus nihil id optio commodi. Ut ea quidem reiciendis corrupti ab debitis. Animi eum voluptatem qui et porro officia aut. Praesentium est veniam nulla et at. Dicta et porro enim in et. Soluta fugit consectetur. Quae ab nemo quis dolorem. Omnis aspernatur tempore ab. Voluptatem in qui expedita voluptatum. Officiis perferendis qui quis id fuga excepturi saepe. Nihil optio rerum voluptate in est totam. Beatae veritatis maiores et similique vel possimus. Atque quia non rerum doloribus. Consequatur sed ratione id. Error ad doloremque et ut sed. Ipsum ut vero mollitia hic et doloremque adipisci. Odio rem culpa possimus fugiat facilis et quibusdam. Voluptas impedit nam est quas ipsum recusandae vel. Nisi aut ex et quia quis molestiae amet. Ratione magni vel optio aperiam. Harum est culpa qui alias inventore. Distinctio aliquid libero sed iste ullam veniam. Vel in cupiditate et perspiciatis. Ut dolor repellendus unde. Ut vel debitis est quidem asperiores. Mollitia explicabo commodi rerum. Alias voluptatem consequatur dolorem dolorem sit qui molestias. Dolorum delectus iure. Adipisci porro ut qui dolore cum natus. Quaerat minima vero itaque nihil sit. Eaque aut quasi id eos ut ipsum omnis. Quis ea labore architecto. Reiciendis eum aut nisi quos corporis commodi laudantium. Dolore magnam dolorum. Est fuga dolores optio recusandae. Dolor suscipit iure magnam impedit. Laboriosam molestiae nisi quo quis asperiores. Ea cupiditate sapiente repellat tempore. Veritatis sit in at inventore nisi."], ["author_id", 1], ["published_at", "2015-01-04 02:20:25.684456"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.686146"], ["updated_at", "2015-01-04 02:20:25.686146"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-04 02:20:25.690228"], ["updated_at", "2015-01-04 02:20:25.690228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title33"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-04 02:20:25.691577"], ["state", "published"], ["created_at", "2015-01-04 02:20:25.693114"], ["updated_at", "2015-01-04 02:20:25.693114"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:25 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-04 02:20:25.919060"], ["updated_at", "2015-01-04 02:20:25.919060"]]  (30.8ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-04 02:20:25.957807"], ["updated_at", "2015-01-04 02:20:25.957807"]]  (16.7ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "body21"], ["author_id", 2], ["created_at", "2015-01-04 02:20:25.983691"], ["updated_at", "2015-01-04 02:20:25.983691"]]  (21.0ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:26.018053"], ["updated_at", "2015-01-04 02:20:26.018053"]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-04 02:20:26.043287"], ["id", 1]]  (16.0ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:30 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.8ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (9.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (11.5ms) Completed 200 OK in 18ms (Views: 14.4ms | ActiveRecord: 1.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-03 21:20:30 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-03 21:20:30 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-03 21:20:30 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500 Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-03 21:20:31 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:31 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.3ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:31 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.5ms) Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.8ms)  (41.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.1ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.3ms) DELETE FROM sqlite_sequence where name = 'users';  (52.5ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-04 02:20:32.109158"], ["updated_at", "2015-01-04 02:20:32.109158"]]  (40.6ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:32 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:32 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Post Title"], ["body", "

Paragraph 1

Paragraph 2

"], ["author_id", 1], ["created_at", "2015-01-04 02:20:32.867110"], ["updated_at", "2015-01-04 02:20:32.867110"]]  (23.9ms) commit transaction Redirected to http://127.0.0.1:60678/proclaim/posts/1 Completed 302 Found in 37ms (ActiveRecord: 24.6ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:32 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts"  (21.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (26.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.8ms) DELETE FROM sqlite_sequence where name = 'users';  (16.2ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (16.1ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-04 02:20:33.392408"], ["updated_at", "2015-01-04 02:20:33.392408"]]  (16.4ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-04 02:20:33.425529"], ["updated_at", "2015-01-04 02:20:33.425529"]]  (35.2ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title35"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-04 02:20:33.470147"], ["updated_at", "2015-01-04 02:20:33.470147"]]  (23.2ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:33 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (3.1ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:33 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420338033-28549-3411/test.jpg"} Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (21.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (19.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (14.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (20.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (16.2ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (21.5ms) DELETE FROM sqlite_sequence where name = 'users';  (23.1ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (16.9ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-04 02:20:34.030764"], ["updated_at", "2015-01-04 02:20:34.030764"]]  (16.8ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:34 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:34 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (16.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (15.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (15.2ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.0ms) DELETE FROM sqlite_sequence where name = 'users';  (20.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (29.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-04 02:20:34.810749"], ["updated_at", "2015-01-04 02:20:34.810749"]]  (15.9ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-03 21:20:34 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-03 21:20:35 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>""}, "commit"=>"Create Post"} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts"  (19.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (20.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (14.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.8ms) DELETE FROM sqlite_sequence where name = 'users';  (15.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (20.9ms) DELETE FROM "proclaim_images";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-04 02:20:35.518248"], ["updated_at", "2015-01-04 02:20:35.518248"]]  (14.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-04 02:20:35.536433"], ["updated_at", "2015-01-04 02:20:35.536433"]]  (15.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title36"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-04 02:20:35.554673"], ["updated_at", "2015-01-04 02:20:35.554673"]]  (14.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:20:35.575023"], ["updated_at", "2015-01-04 02:20:35.575023"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-04 02:20:35.597133"], ["id", 1]]  (16.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-03 21:20:35 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.9ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-03 21:20:35 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:35 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title36", "body"=>"

test

\r\n\t\t


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

test

\r\n\t\t


"], ["updated_at", "2015-01-04 02:20:35.997403"], ["id", 1]] SQL (0.3ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (32.8ms) commit transaction Redirected to http://127.0.0.1:60678/proclaim/posts/1 Completed 302 Found in 49ms (ActiveRecord: 34.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.8ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)  (24.1ms) DELETE FROM "proclaim_posts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (18.0ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.7ms) DELETE FROM sqlite_sequence where name = 'users';  (21.8ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (22.0ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.3ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-04 02:20:36.488979"], ["updated_at", "2015-01-04 02:20:36.488979"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 408c48a1-fe9a-4be6-af69-1cedfc23be32) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.2ms [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Sent mail to email1@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Date: Sat, 03 Jan 2015 21:20:36 -0500 From: from@example.com To: email1@example.com Message-ID: <54a8a3747faed_6f85104dffc74549@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3747efa0_6f85104dffc7444a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3747efa0_6f85104dffc7444a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3747efa0_6f85104dffc7444a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3747efa0_6f85104dffc7444a-- [ActiveJob] [ActionMailer::DeliveryJob] [408c48a1-fe9a-4be6-af69-1cedfc23be32] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.25ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.9ms) Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#unsubscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribed.html.erb within layouts/application (1.1ms) Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-04 02:20:36.575395"], ["updated_at", "2015-01-04 02:20:36.575395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title37"], ["body", "body23"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.577212"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.578639"], ["updated_at", "2015-01-04 02:20:36.578639"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email2@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.582882"], ["updated_at", "2015-01-04 02:20:36.582882"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eeff8e91-89b4-441f-98f1-74526ca8ce86) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.3ms [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Sent mail to email2@example.com (43.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Date: Sat, 03 Jan 2015 21:20:36 -0500 From: from@example.com To: email2@example.com Message-ID: <54a8a37496f0a_6f85104dffc7474c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a374963bb_6f85104dffc7466c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a374963bb_6f85104dffc7466c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a374963bb_6f85104dffc7466c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a374963bb_6f85104dffc7466c-- [ActiveJob] [ActionMailer::DeliveryJob] [eeff8e91-89b4-441f-98f1-74526ca8ce86] Performed ActionMailer::DeliveryJob from Inline(mailers) in 74.87ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-03 21:20:36 -0500 Processing by Proclaim::SubscriptionsController#unsubscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribed.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-04 02:20:36.694726"], ["updated_at", "2015-01-04 02:20:36.694726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-04 02:20:36.699095"], ["updated_at", "2015-01-04 02:20:36.699095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title38"], ["body", "body24"], ["author_id", 2], ["created_at", "2015-01-04 02:20:36.701655"], ["updated_at", "2015-01-04 02:20:36.701655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.704266"], ["updated_at", "2015-01-04 02:20:36.704266"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author1", "body"=>"body1", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (21.2ms) Completed 200 OK in 42ms (Views: 0.7ms | ActiveRecord: 0.7ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-04 02:20:36.817528"], ["updated_at", "2015-01-04 02:20:36.817528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title39"], ["body", "body25"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.819266"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.820695"], ["updated_at", "2015-01-04 02:20:36.820695"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author2", "body"=>"body2", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-04 02:20:36.834420"], ["updated_at", "2015-01-04 02:20:36.834420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title40"], ["body", "body26"], ["author_id", 1], ["published_at", "2015-01-04 02:20:36.836195"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.837591"], ["updated_at", "2015-01-04 02:20:36.837591"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.840971"], ["updated_at", "2015-01-04 02:20:36.840971"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author4", "body"=>"body4", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-04 02:20:36.857910"], ["updated_at", "2015-01-04 02:20:36.857910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-04 02:20:36.861890"], ["updated_at", "2015-01-04 02:20:36.861890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title41"], ["body", "body27"], ["author_id", 2], ["created_at", "2015-01-04 02:20:36.864346"], ["updated_at", "2015-01-04 02:20:36.864346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author5"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.866836"], ["updated_at", "2015-01-04 02:20:36.866836"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-04 02:20:36.923533"], ["updated_at", "2015-01-04 02:20:36.923533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body28"], ["author_id", 1], ["created_at", "2015-01-04 02:20:36.926481"], ["updated_at", "2015-01-04 02:20:36.926481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.929084"], ["updated_at", "2015-01-04 02:20:36.929084"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-04 02:20:36.943678"], ["updated_at", "2015-01-04 02:20:36.943678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title43"], ["body", "body29"], ["author_id", 1], ["created_at", "2015-01-04 02:20:36.946482"], ["updated_at", "2015-01-04 02:20:36.946482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author7"], ["body", "body7"], ["post_id", 1], ["created_at", "2015-01-04 02:20:36.949280"], ["updated_at", "2015-01-04 02:20:36.949280"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author8", "body"=>"body8", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-04 02:20:36.964618"], ["updated_at", "2015-01-04 02:20:36.964618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title44"], ["body", "body30"], ["author_id", 2], ["published_at", "2015-01-04 02:20:36.965962"], ["state", "published"], ["created_at", "2015-01-04 02:20:36.967613"], ["updated_at", "2015-01-04 02:20:36.967613"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author9"], ["body", "body9"], ["post_id", 2], ["created_at", "2015-01-04 02:20:36.970984"], ["updated_at", "2015-01-04 02:20:36.970984"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author10", "body"=>"body10", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body10"], ["author", "author10"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-04 02:20:36.980838"], ["updated_at", "2015-01-04 02:20:36.980838"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 2  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.7ms) Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-04 02:20:37.004659"], ["updated_at", "2015-01-04 02:20:37.004659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title45"], ["body", "body31"], ["author_id", 1], ["created_at", "2015-01-04 02:20:37.007553"], ["updated_at", "2015-01-04 02:20:37.007553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author11", "body"=>"body11", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-04 02:20:37.018873"], ["updated_at", "2015-01-04 02:20:37.018873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title46"], ["body", "body32"], ["author_id", 2], ["published_at", "2015-01-04 02:20:37.020184"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.021583"], ["updated_at", "2015-01-04 02:20:37.021583"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author12", "body"=>"body12", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body12"], ["author", "author12"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.027933"], ["updated_at", "2015-01-04 02:20:37.027933"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.6ms) Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-04 02:20:37.046338"], ["updated_at", "2015-01-04 02:20:37.046338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-04 02:20:37.050228"], ["updated_at", "2015-01-04 02:20:37.050228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title47"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-04 02:20:37.052640"], ["updated_at", "2015-01-04 02:20:37.052640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author13"], ["body", "body13"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.055110"], ["updated_at", "2015-01-04 02:20:37.055110"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author14", "body"=>"body14", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body14"], ["author", "author14"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:37.069045"], ["updated_at", "2015-01-04 02:20:37.069045"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.8ms) Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-04 02:20:37.097343"], ["updated_at", "2015-01-04 02:20:37.097343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title48"], ["body", "body34"], ["author_id", 3], ["published_at", "2015-01-04 02:20:37.098641"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.100073"], ["updated_at", "2015-01-04 02:20:37.100073"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author15"], ["body", "body15"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.103027"], ["updated_at", "2015-01-04 02:20:37.103027"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author16", "body"=>"body16", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body16"], ["author", "author16"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-04 02:20:37.112737"], ["updated_at", "2015-01-04 02:20:37.112737"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.1ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 4, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 3  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 4]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-04 02:20:37.142536"], ["updated_at", "2015-01-04 02:20:37.142536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body35"], ["author_id", 1], ["created_at", "2015-01-04 02:20:37.145291"], ["updated_at", "2015-01-04 02:20:37.145291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.147762"], ["updated_at", "2015-01-04 02:20:37.147762"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author17", "body"=>"body17", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-04 02:20:37.160013"], ["updated_at", "2015-01-04 02:20:37.160013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-04 02:20:37.164060"], ["updated_at", "2015-01-04 02:20:37.164060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title50"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-04 02:20:37.166637"], ["updated_at", "2015-01-04 02:20:37.166637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author18", "body"=>"body18", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body18"], ["author", "author18"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.175816"], ["updated_at", "2015-01-04 02:20:37.175816"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (15.0ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-04 02:20:37.200875"], ["updated_at", "2015-01-04 02:20:37.200875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title51"], ["body", "body37"], ["author_id", 3], ["published_at", "2015-01-04 02:20:37.202251"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.203769"], ["updated_at", "2015-01-04 02:20:37.203769"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author19", "body"=>"body19", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body19"], ["author", "author19"], ["post_id", 2], ["created_at", "2015-01-04 02:20:37.210144"], ["updated_at", "2015-01-04 02:20:37.210144"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms) Completed 200 OK in 22ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-04 02:20:37.235669"], ["updated_at", "2015-01-04 02:20:37.235669"]]  (23.2ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title52"], ["body", "body38"], ["author_id", 1], ["published_at", "2015-01-04 02:20:37.261703"], ["state", "published"], ["created_at", "2015-01-04 02:20:37.266489"], ["updated_at", "2015-01-04 02:20:37.266489"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (21.7ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author20"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-04 02:20:37.295622"], ["updated_at", "2015-01-04 02:20:37.295622"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (14.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:37 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.0ms) Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:38 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:38.185347"], ["updated_at", "2015-01-04 02:20:38.185347"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:38.195131"], ["updated_at", "2015-01-04 02:20:38.195131"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eda54ef5-15d7-400d-8c7f-1899bc0a72b8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 72.8ms [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Sent mail to example@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Date: Sat, 03 Jan 2015 21:20:38 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a37642ef1_6f8537f96007495e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a37642302_6f8537f960074880"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a37642302_6f8537f960074880 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a37642302_6f8537f960074880 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a37642302_6f8537f960074880-- [ActiveJob] [ActionMailer::DeliveryJob] [eda54ef5-15d7-400d-8c7f-1899bc0a72b8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 76.98ms  (41.9ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.5ms) Completed 200 OK in 158ms (Views: 0.4ms | ActiveRecord: 45.9ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-03 21:20:38 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (28.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (14.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (20.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.7ms) DELETE FROM sqlite_sequence where name = 'users';  (20.4ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (17.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-04 02:20:38.650592"], ["updated_at", "2015-01-04 02:20:38.650592"]]  (16.4ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body39"], ["author_id", 1], ["published_at", "2015-01-04 02:20:38.669456"], ["state", "published"], ["created_at", "2015-01-04 02:20:38.673602"], ["updated_at", "2015-01-04 02:20:38.673602"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (15.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:38 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.9ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:39 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"8", "solution"=>"8"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:39.856429"], ["updated_at", "2015-01-04 02:20:39.856429"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:39.866698"], ["updated_at", "2015-01-04 02:20:39.866698"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0a2a7d61-c8c6-4b73-8e73-2ecf8174f832) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.7ms [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Sent mail to example@example.com (5.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Date: Sat, 03 Jan 2015 21:20:39 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a377de328_6f8537f9600751b0@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a377dce69_6f8537f960075099"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a377dce69_6f8537f960075099 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a377dce69_6f8537f960075099 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a377dce69_6f8537f960075099-- [ActiveJob] [ActionMailer::DeliveryJob] [0a2a7d61-c8c6-4b73-8e73-2ecf8174f832] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.66ms  (21.2ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.2ms) Completed 200 OK in 98ms (Views: 0.5ms | ActiveRecord: 23.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (33.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (22.6ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (16.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.1ms) DELETE FROM sqlite_sequence where name = 'users';  (35.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (25.2ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-04 02:20:40.256869"], ["updated_at", "2015-01-04 02:20:40.256869"]]  (25.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title54"], ["body", "body40"], ["author_id", 1], ["published_at", "2015-01-04 02:20:40.284821"], ["state", "published"], ["created_at", "2015-01-04 02:20:40.290006"], ["updated_at", "2015-01-04 02:20:40.290006"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (16.5ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-04 02:20:40.312141"], ["updated_at", "2015-01-04 02:20:40.312141"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (39.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:40 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.3ms) Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:41 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (28.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (15.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (15.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.9ms) DELETE FROM sqlite_sequence where name = 'users';  (15.8ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (15.3ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-04 02:20:41.469500"], ["updated_at", "2015-01-04 02:20:41.469500"]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title55"], ["body", "body41"], ["author_id", 1], ["published_at", "2015-01-04 02:20:41.486399"], ["state", "published"], ["created_at", "2015-01-04 02:20:41.488703"], ["updated_at", "2015-01-04 02:20:41.488703"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (15.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:41 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:42 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:42.283890"], ["updated_at", "2015-01-04 02:20:42.283890"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.3ms) rollback transaction Completed 422 Unprocessable Entity in 23ms (Views: 0.3ms | ActiveRecord: 2.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (26.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.1ms) DELETE FROM sqlite_sequence where name = 'users';  (20.4ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (20.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-04 02:20:42.560735"], ["updated_at", "2015-01-04 02:20:42.560735"]]  (44.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title56"], ["body", "body42"], ["author_id", 1], ["published_at", "2015-01-04 02:20:42.607401"], ["state", "published"], ["created_at", "2015-01-04 02:20:42.609249"], ["updated_at", "2015-01-04 02:20:42.609249"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:42 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.6ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:43 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:43.499152"], ["updated_at", "2015-01-04 02:20:43.499152"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:43.509618"], ["updated_at", "2015-01-04 02:20:43.509618"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e9e3d87b-c309-4a1b-9317-00d25ef79e60) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.5ms [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Sent mail to example@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Date: Sat, 03 Jan 2015 21:20:43 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a37b87657_6f8537f9600753ad@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a37b86909_6f8537f960075223"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a37b86909_6f8537f960075223 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a37b86909_6f8537f960075223 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a37b86909_6f8537f960075223-- [ActiveJob] [ActionMailer::DeliveryJob] [e9e3d87b-c309-4a1b-9317-00d25ef79e60] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.38ms  (28.8ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.1ms) Completed 200 OK in 112ms (Views: 0.6ms | ActiveRecord: 31.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (27.0ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (29.2ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.3ms) DELETE FROM sqlite_sequence where name = 'users';  (51.5ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-04 02:20:43.951725"], ["updated_at", "2015-01-04 02:20:43.951725"]]  (53.1ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-04 02:20:44.012560"], ["updated_at", "2015-01-04 02:20:44.012560"]]  (37.6ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title57"], ["body", "body43"], ["author_id", 2], ["published_at", "2015-01-04 02:20:44.056110"], ["state", "published"], ["created_at", "2015-01-04 02:20:44.060455"], ["updated_at", "2015-01-04 02:20:44.060455"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:44 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.5ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.5ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:44 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:44.948147"], ["updated_at", "2015-01-04 02:20:44.948147"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:44.957045"], ["updated_at", "2015-01-04 02:20:44.957045"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5f00f8e1-d8d2-42e8-9760-ef75512075de) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.1ms [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Sent mail to example@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Date: Sat, 03 Jan 2015 21:20:44 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a37cf3ac1_6f8537f960075576@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a37cf2ee7_6f8537f960075435"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a37cf2ee7_6f8537f960075435 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a37cf2ee7_6f8537f960075435 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a37cf2ee7_6f8537f960075435-- [ActiveJob] [ActionMailer::DeliveryJob] [5f00f8e1-d8d2-42e8-9760-ef75512075de] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.21ms  (39.2ms) commit transaction Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.9ms) Completed 200 OK in 159ms (Views: 0.7ms | ActiveRecord: 41.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (22.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.9ms) DELETE FROM sqlite_sequence where name = 'users';  (34.7ms) DELETE FROM "proclaim_subscriptions";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (26.5ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-04 02:20:45.463227"], ["updated_at", "2015-01-04 02:20:45.463227"]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title58"], ["body", "body44"], ["author_id", 1], ["published_at", "2015-01-04 02:20:45.485430"], ["state", "published"], ["created_at", "2015-01-04 02:20:45.487546"], ["updated_at", "2015-01-04 02:20:45.487546"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:45 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:46 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:46.290803"], ["updated_at", "2015-01-04 02:20:46.290803"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 2.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (42.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (34.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.6ms) DELETE FROM sqlite_sequence where name = 'users';  (39.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.8ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-04 02:20:46.639162"], ["updated_at", "2015-01-04 02:20:46.639162"]]  (30.2ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-04 02:20:46.678827"], ["updated_at", "2015-01-04 02:20:46.678827"]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title59"], ["body", "body45"], ["author_id", 2], ["published_at", "2015-01-04 02:20:46.710147"], ["state", "published"], ["created_at", "2015-01-04 02:20:46.711840"], ["updated_at", "2015-01-04 02:20:46.711840"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.9ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-04 02:20:46.761664"], ["updated_at", "2015-01-04 02:20:46.761664"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (20.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:46 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (19.1ms) Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:47 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.9ms) 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-04 02:20:47.714076"], ["updated_at", "2015-01-04 02:20:47.714076"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:20:47.725331"], ["updated_at", "2015-01-04 02:20:47.725331"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 40af45b0-4804-4a03-ab57-b1f35ccdbd39) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (5.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 72.6ms [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Date: Sat, 03 Jan 2015 21:20:47 -0500 From: from@example.com To: example@example.com Message-ID: <54a8a37fc4eec_6f8537f96007578f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a37fc42b2_6f8537f9600756ad"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a37fc42b2_6f8537f9600756ad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a37fc42b2_6f8537f9600756ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a37fc42b2_6f8537f9600756ad-- [ActiveJob] [ActionMailer::DeliveryJob] [40af45b0-4804-4a03-ab57-b1f35ccdbd39] Performed ActionMailer::DeliveryJob from Inline(mailers) in 78.06ms  (31.3ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.3ms) Completed 200 OK in 154ms (Views: 0.7ms | ActiveRecord: 34.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (27.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (17.7ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (32.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.1ms) DELETE FROM sqlite_sequence where name = 'users';  (29.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (26.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-04 02:20:48.188679"], ["updated_at", "2015-01-04 02:20:48.188679"]]  (37.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "body46"], ["author_id", 1], ["published_at", "2015-01-04 02:20:48.229198"], ["state", "published"], ["created_at", "2015-01-04 02:20:48.234152"], ["updated_at", "2015-01-04 02:20:48.234152"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (25.0ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body23"], ["post_id", 1], ["created_at", "2015-01-04 02:20:48.266664"], ["updated_at", "2015-01-04 02:20:48.266664"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (22.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:48 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.2ms) Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:49 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (31.3ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (22.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (40.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (20.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.7ms) DELETE FROM sqlite_sequence where name = 'users';  (20.3ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (15.6ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-04 02:20:49.716368"], ["updated_at", "2015-01-04 02:20:49.716368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-04 02:20:49.724411"], ["updated_at", "2015-01-04 02:20:49.724411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title61"], ["body", "body47"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.726803"], ["updated_at", "2015-01-04 02:20:49.726803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-04 02:20:49.729755"], ["updated_at", "2015-01-04 02:20:49.729755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title62"], ["body", "body48"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.730968"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.732297"], ["updated_at", "2015-01-04 02:20:49.732297"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-04 02:20:49.735938"], ["updated_at", "2015-01-04 02:20:49.735938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-04 02:20:49.738536"], ["updated_at", "2015-01-04 02:20:49.738536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title63"], ["body", "body49"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.741020"], ["updated_at", "2015-01-04 02:20:49.741020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-04 02:20:49.744312"], ["updated_at", "2015-01-04 02:20:49.744312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title64"], ["body", "body50"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.745542"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.746900"], ["updated_at", "2015-01-04 02:20:49.746900"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-04 02:20:49.750709"], ["updated_at", "2015-01-04 02:20:49.750709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-04 02:20:49.753016"], ["updated_at", "2015-01-04 02:20:49.753016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title65"], ["body", "body51"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.755252"], ["updated_at", "2015-01-04 02:20:49.755252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-04 02:20:49.758126"], ["updated_at", "2015-01-04 02:20:49.758126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title66"], ["body", "body52"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.759316"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.760641"], ["updated_at", "2015-01-04 02:20:49.760641"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-04 02:20:49.765864"], ["updated_at", "2015-01-04 02:20:49.765864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-04 02:20:49.768164"], ["updated_at", "2015-01-04 02:20:49.768164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title67"], ["body", "body53"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.770765"], ["updated_at", "2015-01-04 02:20:49.770765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-04 02:20:49.774439"], ["updated_at", "2015-01-04 02:20:49.774439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-04 02:20:49.776746"], ["updated_at", "2015-01-04 02:20:49.776746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body54"], ["author_id", 2], ["created_at", "2015-01-04 02:20:49.778926"], ["updated_at", "2015-01-04 02:20:49.778926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-04 02:20:49.781975"], ["updated_at", "2015-01-04 02:20:49.781975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body55"], ["author_id", 3], ["published_at", "2015-01-04 02:20:49.783283"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.784759"], ["updated_at", "2015-01-04 02:20:49.784759"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-04 02:20:49.792272"], ["updated_at", "2015-01-04 02:20:49.792272"]]  (16.6ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title70"], ["body", "body56"], ["author_id", 1], ["published_at", "2015-01-04 02:20:49.810870"], ["state", "published"], ["created_at", "2015-01-04 02:20:49.813806"], ["updated_at", "2015-01-04 02:20:49.813806"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (16.6ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author24"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-04 02:20:49.838803"], ["updated_at", "2015-01-04 02:20:49.838803"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (21.6ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-04 02:20:49.875031"], ["updated_at", "2015-01-04 02:20:49.875031"]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (22.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:49 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.5ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.6ms) Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.7ms)  (28.7ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (16.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.5ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.2ms) DELETE FROM sqlite_sequence where name = 'users';  (20.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (29.6ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-04 02:20:50.605032"], ["updated_at", "2015-01-04 02:20:50.605032"]]  (17.2ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-04 02:20:50.634174"], ["updated_at", "2015-01-04 02:20:50.634174"]]  (16.4ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title71"], ["body", "body57"], ["author_id", 2], ["published_at", "2015-01-04 02:20:50.653961"], ["state", "published"], ["created_at", "2015-01-04 02:20:50.655669"], ["updated_at", "2015-01-04 02:20:50.655669"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (16.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-04 02:20:50.681003"], ["updated_at", "2015-01-04 02:20:50.681003"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (16.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:50 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.0ms) Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 0.7ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 21:20:51 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:20:51.369885"], ["id", 1]]  (21.5ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.8ms) Completed 200 OK in 58ms (Views: 1.1ms | ActiveRecord: 23.4ms)  (43.6ms) DELETE FROM "proclaim_posts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (16.3ms) DELETE FROM "proclaim_comments";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (20.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (17.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.2ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.3ms) DELETE FROM sqlite_sequence where name = 'users';  (17.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (17.3ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-04 02:20:51.814993"], ["updated_at", "2015-01-04 02:20:51.814993"]]  (15.2ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title72"], ["body", "body58"], ["author_id", 1], ["published_at", "2015-01-04 02:20:51.832921"], ["state", "published"], ["created_at", "2015-01-04 02:20:51.835946"], ["updated_at", "2015-01-04 02:20:51.835946"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author27"], ["body", "body27"], ["post_id", 1], ["created_at", "2015-01-04 02:20:51.863337"], ["updated_at", "2015-01-04 02:20:51.863337"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (16.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:51 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.6ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.6ms)  (20.1ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (14.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (25.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (19.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.0ms) DELETE FROM sqlite_sequence where name = 'users';  (14.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (14.6ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-04 02:20:52.216376"], ["updated_at", "2015-01-04 02:20:52.216376"]]  (21.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title73"], ["body", "body59"], ["author_id", 1], ["published_at", "2015-01-04 02:20:52.240746"], ["state", "published"], ["created_at", "2015-01-04 02:20:52.243434"], ["updated_at", "2015-01-04 02:20:52.243434"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (19.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author28"], ["body", "body28"], ["post_id", 1], ["created_at", "2015-01-04 02:20:52.268174"], ["updated_at", "2015-01-04 02:20:52.268174"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (30.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:52 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (13.4ms) Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:52 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (41.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (24.4ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.0ms) DELETE FROM sqlite_sequence where name = 'users';  (16.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (27.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-04 02:20:53.288919"], ["updated_at", "2015-01-04 02:20:53.288919"]]  (23.8ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title74"], ["body", "body60"], ["author_id", 1], ["published_at", "2015-01-04 02:20:53.315598"], ["state", "published"], ["created_at", "2015-01-04 02:20:53.320529"], ["updated_at", "2015-01-04 02:20:53.320529"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (20.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:53 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.5ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:53 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (25.4ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (21.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (18.2ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.7ms) DELETE FROM sqlite_sequence where name = 'users';  (17.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-04 02:20:54.016603"], ["updated_at", "2015-01-04 02:20:54.016603"]]  (21.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-04 02:20:54.048967"], ["updated_at", "2015-01-04 02:20:54.048967"]]  (16.6ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title75"], ["body", "body61"], ["author_id", 2], ["published_at", "2015-01-04 02:20:54.070012"], ["state", "published"], ["created_at", "2015-01-04 02:20:54.074758"], ["updated_at", "2015-01-04 02:20:54.074758"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (16.9ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author29"], ["body", "body29"], ["post_id", 1], ["created_at", "2015-01-04 02:20:54.101479"], ["updated_at", "2015-01-04 02:20:54.101479"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (16.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:54 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (14.5ms) Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 21:20:54 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.8ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.6ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (39.1ms) commit transaction Completed 200 OK in 50ms (Views: 0.2ms | ActiveRecord: 40.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (22.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (16.0ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (24.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.8ms) DELETE FROM sqlite_sequence where name = 'users';  (17.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (22.3ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-04 02:20:55.503566"], ["updated_at", "2015-01-04 02:20:55.503566"]]  (20.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title76"], ["body", "body62"], ["author_id", 1], ["published_at", "2015-01-04 02:20:55.529045"], ["state", "published"], ["created_at", "2015-01-04 02:20:55.531025"], ["updated_at", "2015-01-04 02:20:55.531025"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (15.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:55 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.9ms) Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:56 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"8"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (28.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (20.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (15.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.0ms) DELETE FROM sqlite_sequence where name = 'users';  (38.8ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (18.6ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-04 02:20:56.540374"], ["updated_at", "2015-01-04 02:20:56.540374"]]  (15.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title77"], ["body", "body63"], ["author_id", 1], ["published_at", "2015-01-04 02:20:56.558983"], ["state", "published"], ["created_at", "2015-01-04 02:20:56.563293"], ["updated_at", "2015-01-04 02:20:56.563293"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (15.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:56 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:20:57 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"8", "solution"=>"8"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-04 02:20:57.197462"], ["updated_at", "2015-01-04 02:20:57.197462"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.9ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (28.6ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.5ms) Completed 200 OK in 65ms (Views: 0.7ms | ActiveRecord: 31.3ms)  (29.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.4ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (50.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (50.3ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.4ms) DELETE FROM sqlite_sequence where name = 'users';  (30.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.0ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-04 02:20:57.749152"], ["updated_at", "2015-01-04 02:20:57.749152"]]  (25.3ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-04 02:20:57.781162"], ["updated_at", "2015-01-04 02:20:57.781162"]]  (43.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title78"], ["body", "body64"], ["author_id", 2], ["published_at", "2015-01-04 02:20:57.830493"], ["state", "published"], ["created_at", "2015-01-04 02:20:57.835240"], ["updated_at", "2015-01-04 02:20:57.835240"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (25.7ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body30"], ["post_id", 1], ["created_at", "2015-01-04 02:20:57.867618"], ["updated_at", "2015-01-04 02:20:57.867618"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (31.9ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author31"], ["body", "body31"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:20:57.913222"], ["updated_at", "2015-01-04 02:20:57.913222"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (32.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:57 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.7ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (21.7ms) Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.7ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-03 21:20:58 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:20:58.680871"], ["id", 1]]  (67.3ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.0ms) Completed 200 OK in 118ms (Views: 1.6ms | ActiveRecord: 69.2ms)  (57.6ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (22.2ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (16.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.2ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.5ms) DELETE FROM sqlite_sequence where name = 'users';  (27.4ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (19.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-04 02:20:59.290596"], ["updated_at", "2015-01-04 02:20:59.290596"]]  (23.1ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title79"], ["body", "body65"], ["author_id", 1], ["published_at", "2015-01-04 02:20:59.316673"], ["state", "published"], ["created_at", "2015-01-04 02:20:59.320542"], ["updated_at", "2015-01-04 02:20:59.320542"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (25.9ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-04 02:20:59.356859"], ["updated_at", "2015-01-04 02:20:59.356859"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (21.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:20:59 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:21:00 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:00.060645"], ["updated_at", "2015-01-04 02:21:00.060645"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (61.9ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.3ms) Completed 200 OK in 96ms (Views: 0.5ms | ActiveRecord: 64.7ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-03 21:21:00 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 2", "body"=>"Reply Body 2", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 2"], ["author", "Reply Author 2"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:00.827960"], ["updated_at", "2015-01-04 02:21:00.827960"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (43.1ms) commit transaction Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.8ms) Completed 200 OK in 123ms (Views: 41.3ms | ActiveRecord: 45.9ms)  (39.9ms) DELETE FROM "proclaim_posts";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.0ms) DELETE FROM sqlite_sequence where name = 'users';  (23.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-04 02:21:01.435182"], ["updated_at", "2015-01-04 02:21:01.435182"]]  (28.1ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-04 02:21:01.468066"], ["updated_at", "2015-01-04 02:21:01.468066"]]  (26.9ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title80"], ["body", "body66"], ["author_id", 2], ["published_at", "2015-01-04 02:21:01.499692"], ["state", "published"], ["created_at", "2015-01-04 02:21:01.504202"], ["updated_at", "2015-01-04 02:21:01.504202"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.4ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body33"], ["post_id", 1], ["created_at", "2015-01-04 02:21:01.544812"], ["updated_at", "2015-01-04 02:21:01.544812"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (37.8ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author34"], ["body", "body34"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:01.599206"], ["updated_at", "2015-01-04 02:21:01.599206"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (35.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:01 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.5ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (23.0ms) Completed 200 OK in 29ms (Views: 24.5ms | ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-03 21:21:02 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.8ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.5ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (25.0ms) commit transaction Completed 200 OK in 40ms (Views: 0.2ms | ActiveRecord: 27.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (48.4ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (46.7ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.6ms) DELETE FROM sqlite_sequence where name = 'users';  (46.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.4ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-04 02:21:03.606876"], ["updated_at", "2015-01-04 02:21:03.606876"]]  (41.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title81"], ["body", "body67"], ["author_id", 1], ["published_at", "2015-01-04 02:21:03.651119"], ["state", "published"], ["created_at", "2015-01-04 02:21:03.654428"], ["updated_at", "2015-01-04 02:21:03.654428"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.0ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-04 02:21:03.698794"], ["updated_at", "2015-01-04 02:21:03.698794"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (41.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:03 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.2ms) Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 0.9ms)  (18.3ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (16.8ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (22.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.2ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.6ms) DELETE FROM sqlite_sequence where name = 'users';  (23.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (17.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-04 02:21:04.196625"], ["updated_at", "2015-01-04 02:21:04.196625"]]  (38.1ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-04 02:21:04.247400"], ["updated_at", "2015-01-04 02:21:04.247400"]]  (32.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title82"], ["body", "body68"], ["author_id", 2], ["published_at", "2015-01-04 02:21:04.285509"], ["state", "published"], ["created_at", "2015-01-04 02:21:04.290454"], ["updated_at", "2015-01-04 02:21:04.290454"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (21.1ms) commit transaction  (0.2ms) begin transaction SQL (2.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-04 02:21:04.320368"], ["updated_at", "2015-01-04 02:21:04.320368"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (23.5ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author37"], ["body", "body37"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-04 02:21:04.359872"], ["updated_at", "2015-01-04 02:21:04.359872"]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (24.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:04 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (1.6ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (15.1ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (10.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (50.5ms) Completed 200 OK in 55ms (Views: 50.5ms | ActiveRecord: 2.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-03 21:21:04 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.6ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.4ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (22.1ms) commit transaction Completed 200 OK in 32ms (Views: 0.2ms | ActiveRecord: 23.8ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (39.4ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (34.8ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.8ms) DELETE FROM sqlite_sequence where name = 'users';  (40.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-04 02:21:06.018227"], ["updated_at", "2015-01-04 02:21:06.018227"]]  (16.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-04 02:21:06.044548"], ["updated_at", "2015-01-04 02:21:06.044548"]]  (27.4ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title83"], ["body", "body69"], ["author_id", 2], ["published_at", "2015-01-04 02:21:06.077966"], ["state", "published"], ["created_at", "2015-01-04 02:21:06.082810"], ["updated_at", "2015-01-04 02:21:06.082810"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (22.1ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author38"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-04 02:21:06.116830"], ["updated_at", "2015-01-04 02:21:06.116830"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (17.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) 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-04 02:21:06.152628"], ["updated_at", "2015-01-04 02:21:06.152628"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (22.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-03 21:21:06 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.2ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (63.9ms) Completed 200 OK in 66ms (Views: 64.4ms | ActiveRecord: 0.8ms) Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-03 21:21:06 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>"1"}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"2"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.1ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-04 02:21:06.912738"], ["id", 2]]  (26.5ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.2ms) Completed 200 OK in 61ms (Views: 0.8ms | ActiveRecord: 29.0ms)  (30.4ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (18.0ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (17.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.2ms) DELETE FROM sqlite_sequence where name = 'users';  (32.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-04 02:21:07.461046"], ["updated_at", "2015-01-04 02:21:07.461046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-04 02:21:07.464145"], ["updated_at", "2015-01-04 02:21:07.464145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title84"], ["body", "body70"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.466604"], ["updated_at", "2015-01-04 02:21:07.466604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.470202"], ["updated_at", "2015-01-04 02:21:07.470202"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-04 02:21:07.476369"], ["updated_at", "2015-01-04 02:21:07.476369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title85"], ["body", "body71"], ["author_id", 3], ["created_at", "2015-01-04 02:21:07.478610"], ["updated_at", "2015-01-04 02:21:07.478610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author41"], ["body", "body41"], ["post_id", 2], ["created_at", "2015-01-04 02:21:07.481116"], ["updated_at", "2015-01-04 02:21:07.481116"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-04 02:21:07.488425"], ["updated_at", "2015-01-04 02:21:07.488425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-04 02:21:07.491088"], ["updated_at", "2015-01-04 02:21:07.491088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title86"], ["body", "body72"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.534385"], ["updated_at", "2015-01-04 02:21:07.534385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author42"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.537115"], ["updated_at", "2015-01-04 02:21:07.537115"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-04 02:21:07.543405"], ["updated_at", "2015-01-04 02:21:07.543405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-04 02:21:07.546332"], ["updated_at", "2015-01-04 02:21:07.546332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title87"], ["body", "body73"], ["author_id", 2], ["created_at", "2015-01-04 02:21:07.548601"], ["updated_at", "2015-01-04 02:21:07.548601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author43"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.551133"], ["updated_at", "2015-01-04 02:21:07.551133"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-04 02:21:07.557528"], ["updated_at", "2015-01-04 02:21:07.557528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-04 02:21:07.560313"], ["updated_at", "2015-01-04 02:21:07.560313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title88"], ["body", "body74"], ["author_id", 2], ["published_at", "2015-01-04 02:21:07.561489"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.562905"], ["updated_at", "2015-01-04 02:21:07.562905"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-04 02:21:07.567148"], ["updated_at", "2015-01-04 02:21:07.567148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-04 02:21:07.569628"], ["updated_at", "2015-01-04 02:21:07.569628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-04 02:21:07.575480"], ["updated_at", "2015-01-04 02:21:07.575480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title90"], ["body", "body76"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.577298"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.578751"], ["updated_at", "2015-01-04 02:21:07.578751"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email3@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.583393"], ["updated_at", "2015-01-04 02:21:07.583393"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2a0e1937-f8de-424e-b215-00bb8ae25283) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.6ms [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Sent mail to email3@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email3@example.com Message-ID: <54a8a39396e2c_6f85104dffc759e1@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a393961d7_6f85104dffc758f8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a393961d7_6f85104dffc758f8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a393961d7_6f85104dffc758f8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a393961d7_6f85104dffc758f8-- [ActiveJob] [ActionMailer::DeliveryJob] [2a0e1937-f8de-424e-b215-00bb8ae25283] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.46ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email4@example.com"], ["created_at", "2015-01-04 02:21:07.624360"], ["updated_at", "2015-01-04 02:21:07.624360"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e5761369-5c2a-4b8b-b622-71a75ee94be3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.5ms [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Sent mail to email4@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email4@example.com Message-ID: <54a8a393aa8c5_6f85104dffc76179@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3939ff67_6f85104dffc76085"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3939ff67_6f85104dffc76085 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3939ff67_6f85104dffc76085 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3939ff67_6f85104dffc76085-- [ActiveJob] [ActionMailer::DeliveryJob] [e5761369-5c2a-4b8b-b622-71a75ee94be3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 73.07ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-04 02:21:07.703333"], ["updated_at", "2015-01-04 02:21:07.703333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title91"], ["body", "body77"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.704990"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.706492"], ["updated_at", "2015-01-04 02:21:07.706492"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (4.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 42.9ms [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Sent mail to email4@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email4@example.com Message-ID: <54a8a393b8ad8_6f85104dffc7635@Pandora.mail> Subject: New Post: title91 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a393b802c_6f85104dffc76296"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a393b802c_6f85104dffc76296 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title91 ******* body77 Written on January 04, 2015 at 02:21 AM UTC by first_name123 last_name123 You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a393b802c_6f85104dffc76296 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title91

body77
----==_mimepart_54a8a393b802c_6f85104dffc76296-- [ActiveJob] [ActionMailer::DeliveryJob] [9593bc12-ff74-43e8-a7ff-a3ac24c4fcc9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 46.73ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-04 02:21:07.762752"], ["updated_at", "2015-01-04 02:21:07.762752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title92"], ["body", "body78"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.764552"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.766072"], ["updated_at", "2015-01-04 02:21:07.766072"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email5@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.770486"], ["updated_at", "2015-01-04 02:21:07.770486"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aa234077-9554-4faf-8ff8-faed4addcd67) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.0ms [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Sent mail to email5@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email5@example.com Message-ID: <54a8a393c4766_6f85104dffc7659d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a393c3cb0_6f85104dffc764df"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a393c3cb0_6f85104dffc764df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a393c3cb0_6f85104dffc764df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a393c3cb0_6f85104dffc764df-- [ActiveJob] [ActionMailer::DeliveryJob] [aa234077-9554-4faf-8ff8-faed4addcd67] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.79ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-04 02:21:07.809136"], ["updated_at", "2015-01-04 02:21:07.809136"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d0139093-5f8b-4810-a932-5482eedf90c6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 78.0ms [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Sent mail to email5@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email5@example.com Message-ID: <54a8a393da280_6f85104dffc767a@Pandora.mail> Subject: New Comment On "title92" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a393d97b4_6f85104dffc7665"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a393d97b4_6f85104dffc7665 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body46 Written on January 04, 2015 at 02:21 AM UTC by author46 You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a393d97b4_6f85104dffc7665 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body46
----==_mimepart_54a8a393d97b4_6f85104dffc7665-- [ActiveJob] [ActionMailer::DeliveryJob] [d0139093-5f8b-4810-a932-5482eedf90c6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 81.73ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-04 02:21:07.900173"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email6@example.com"], ["created_at", "2015-01-04 02:21:07.905104"], ["updated_at", "2015-01-04 02:21:07.905104"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a3f24d17-d0e2-4bee-971e-396724ccb9a5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.0ms [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Sent mail to email6@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Date: Sat, 03 Jan 2015 21:21:07 -0500 From: from@example.com To: email6@example.com Message-ID: <54a8a393e750d_6f85104dffc7695a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a393e69fa_6f85104dffc76883"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a393e69fa_6f85104dffc76883 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a393e69fa_6f85104dffc76883 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a393e69fa_6f85104dffc76883-- [ActiveJob] [ActionMailer::DeliveryJob] [a3f24d17-d0e2-4bee-971e-396724ccb9a5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.07ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-04 02:21:07.951964"], ["updated_at", "2015-01-04 02:21:07.951964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title93"], ["body", "body79"], ["author_id", 1], ["published_at", "2015-01-04 02:21:07.953606"], ["state", "published"], ["created_at", "2015-01-04 02:21:07.954990"], ["updated_at", "2015-01-04 02:21:07.954990"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 63.0ms [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Sent mail to email6@example.com (4.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email6@example.com Message-ID: <54a8a39462c3_6f85104dffc771b9@Pandora.mail> Subject: New Post: title93 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a394562e_6f85104dffc77042"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a394562e_6f85104dffc77042 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title93 ******* body79 Written on January 04, 2015 at 02:21 AM UTC by first_name125 last_name125 You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a394562e_6f85104dffc77042 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title93

body79
----==_mimepart_54a8a394562e_6f85104dffc77042-- [ActiveJob] [ActionMailer::DeliveryJob] [4a9fb1b2-38ab-4b19-9225-eaeba1cbebe8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 68.4ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email7@example.com"], ["created_at", "2015-01-04 02:21:08.035277"], ["updated_at", "2015-01-04 02:21:08.035277"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e89ff73b-90d3-4589-9c43-9c13a908332f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 40.8ms [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Sent mail to email7@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email7@example.com Message-ID: <54a8a39414927_6f85104dffc77315@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39413e29_6f85104dffc7727a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39413e29_6f85104dffc7727a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39413e29_6f85104dffc7727a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39413e29_6f85104dffc7727a-- [ActiveJob] [ActionMailer::DeliveryJob] [e89ff73b-90d3-4589-9c43-9c13a908332f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 44.8ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-04 02:21:08.088660"], ["updated_at", "2015-01-04 02:21:08.088660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title94"], ["body", "body80"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.091707"], ["updated_at", "2015-01-04 02:21:08.091707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-04 02:21:08.093595"], ["state", "published"], ["updated_at", "2015-01-04 02:21:08.094931"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 503e7484-1a06-4a7f-a76b-7194e6852768) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 62.4ms [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Sent mail to email7@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email7@example.com Message-ID: <54a8a39428015_6f85104dffc77583@Pandora.mail> Subject: New Post: title94 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a394274ef_6f85104dffc77456"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a394274ef_6f85104dffc77456 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title94 ******* body80 Written on January 04, 2015 at 02:21 AM UTC by first_name126 last_name126 You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a394274ef_6f85104dffc77456 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title94

body80
----==_mimepart_54a8a394274ef_6f85104dffc77456-- [ActiveJob] [ActionMailer::DeliveryJob] [503e7484-1a06-4a7f-a76b-7194e6852768] Performed ActionMailer::DeliveryJob from Inline(mailers) in 66.58ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-04 02:21:08.171098"], ["updated_at", "2015-01-04 02:21:08.171098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title95"], ["body", "body81"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.173668"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.175411"], ["updated_at", "2015-01-04 02:21:08.175411"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email8@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email8@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:08.181558"], ["updated_at", "2015-01-04 02:21:08.181558"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 66dbab60-b11f-490e-a1c5-3b7b5990ebf7) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 38.9ms [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Sent mail to email8@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email8@example.com Message-ID: <54a8a394375bc_6f85104dffc77716@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39436a80_6f85104dffc77631"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39436a80_6f85104dffc77631 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39436a80_6f85104dffc77631 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a39436a80_6f85104dffc77631-- [ActiveJob] [ActionMailer::DeliveryJob] [66dbab60-b11f-490e-a1c5-3b7b5990ebf7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.89ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-04 02:21:08.231297"], ["updated_at", "2015-01-04 02:21:08.231297"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 916d0631-4be5-492b-b41f-740fc31a883a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 25.6ms [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Sent mail to email8@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email8@example.com Message-ID: <54a8a394405b4_6f85104dffc77985@Pandora.mail> Subject: New Comment On "title95" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3943fb1a_6f85104dffc77828"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3943fb1a_6f85104dffc77828 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body47 Written on January 04, 2015 at 02:21 AM UTC by author47 You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3943fb1a_6f85104dffc77828 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body47
----==_mimepart_54a8a3943fb1a_6f85104dffc77828-- [ActiveJob] [ActionMailer::DeliveryJob] [916d0631-4be5-492b-b41f-740fc31a883a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.32ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-04 02:21:08.272708"], ["updated_at", "2015-01-04 02:21:08.272708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-04 02:21:08.276223"], ["updated_at", "2015-01-04 02:21:08.276223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title96"], ["body", "body82"], ["author_id", 2], ["published_at", "2015-01-04 02:21:08.277675"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.279053"], ["updated_at", "2015-01-04 02:21:08.279053"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (8.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (53.3ms) Completed 200 OK in 56ms (Views: 54.4ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-04 02:21:08.343086"], ["updated_at", "2015-01-04 02:21:08.343086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title97"], ["body", "body83"], ["author_id", 3], ["created_at", "2015-01-04 02:21:08.347090"], ["updated_at", "2015-01-04 02:21:08.347090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (7.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.7ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-04 02:21:08.371528"], ["updated_at", "2015-01-04 02:21:08.371528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (9.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (9.9ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-04 02:21:08.394336"], ["updated_at", "2015-01-04 02:21:08.394336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-04 02:21:08.398430"], ["updated_at", "2015-01-04 02:21:08.398430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title98"], ["body", "body84"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.401282"], ["updated_at", "2015-01-04 02:21:08.401282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (7.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (7.6ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-04 02:21:08.420318"], ["updated_at", "2015-01-04 02:21:08.420318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body85"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.423113"], ["updated_at", "2015-01-04 02:21:08.423113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-04 02:21:08.435765"], ["updated_at", "2015-01-04 02:21:08.435765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-04 02:21:08.439649"], ["updated_at", "2015-01-04 02:21:08.439649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title100"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title100"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.452972"], ["updated_at", "2015-01-04 02:21:08.452972"]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:08.454965"], ["updated_at", "2015-01-04 02:21:08.454965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-04 02:21:08.462215"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 20ms (ActiveRecord: 1.1ms) Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-04 02:21:08.473660"], ["updated_at", "2015-01-04 02:21:08.473660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-04 02:21:08.477170"], ["updated_at", "2015-01-04 02:21:08.477170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body87"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.479569"], ["updated_at", "2015-01-04 02:21:08.479569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-04 02:21:08.482406"], ["updated_at", "2015-01-04 02:21:08.482406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title102"], ["body", "body88"], ["author_id", 3], ["published_at", "2015-01-04 02:21:08.483626"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.484986"], ["updated_at", "2015-01-04 02:21:08.484986"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (17.5ms) Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-04 02:21:08.513099"], ["updated_at", "2015-01-04 02:21:08.513099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-04 02:21:08.516534"], ["updated_at", "2015-01-04 02:21:08.516534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title103"], ["body", "body89"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.519049"], ["updated_at", "2015-01-04 02:21:08.519049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body89", "title"=>"title103"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-04 02:21:08.526727"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-04 02:21:08.529568"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (1.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-04 02:21:08.581756"], ["updated_at", "2015-01-04 02:21:08.581756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body90", "title"=>"title104"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-04 02:21:08.595797"], ["updated_at", "2015-01-04 02:21:08.595797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-04 02:21:08.599364"], ["updated_at", "2015-01-04 02:21:08.599364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body91", "title"=>"title105"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title105"], ["body", "body91"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.608824"], ["updated_at", "2015-01-04 02:21:08.608824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-04 02:21:08.619886"], ["updated_at", "2015-01-04 02:21:08.619886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-04 02:21:08.623692"], ["updated_at", "2015-01-04 02:21:08.623692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body92", "title"=>"title106"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title106"], ["body", "body92"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.630446"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.633113"], ["updated_at", "2015-01-04 02:21:08.633113"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in ----------------------------------------------------------------------- Processing by Proclaim::PostsController#new as HTML Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-04 02:21:08.654040"], ["updated_at", "2015-01-04 02:21:08.654040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body93"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.656804"], ["updated_at", "2015-01-04 02:21:08.656804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-04 02:21:08.670745"], ["updated_at", "2015-01-04 02:21:08.670745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title108"], ["body", "body94"], ["author_id", 1], ["published_at", "2015-01-04 02:21:08.672722"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.674171"], ["updated_at", "2015-01-04 02:21:08.674171"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.9ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-04 02:21:08.691497"], ["updated_at", "2015-01-04 02:21:08.691497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title109"], ["body", "body95"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.694047"], ["updated_at", "2015-01-04 02:21:08.694047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-04 02:21:08.701199"], ["updated_at", "2015-01-04 02:21:08.701199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-04 02:21:08.704944"], ["updated_at", "2015-01-04 02:21:08.704944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title110"], ["body", "body96"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.707581"], ["updated_at", "2015-01-04 02:21:08.707581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-04 02:21:08.727201"], ["updated_at", "2015-01-04 02:21:08.727201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title111"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.730528"], ["updated_at", "2015-01-04 02:21:08.730528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body97", "title"=>"title111"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 5ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-04 02:21:08.744243"], ["updated_at", "2015-01-04 02:21:08.744243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-04 02:21:08.747734"], ["updated_at", "2015-01-04 02:21:08.747734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title112"], ["body", "body98"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.750213"], ["updated_at", "2015-01-04 02:21:08.750213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body98", "title"=>"title112"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-04 02:21:08.769619"], ["updated_at", "2015-01-04 02:21:08.769619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body99"], ["author_id", 1], ["created_at", "2015-01-04 02:21:08.772988"], ["updated_at", "2015-01-04 02:21:08.772988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-04 02:21:08.776015"], ["updated_at", "2015-01-04 02:21:08.776015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title114"], ["body", "body100"], ["author_id", 2], ["published_at", "2015-01-04 02:21:08.777190"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.778535"], ["updated_at", "2015-01-04 02:21:08.778535"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (5.2ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-04 02:21:08.794357"], ["updated_at", "2015-01-04 02:21:08.794357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-04 02:21:08.797957"], ["updated_at", "2015-01-04 02:21:08.797957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title115"], ["body", "body101"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.801625"], ["updated_at", "2015-01-04 02:21:08.801625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title115"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:08.858349"], ["updated_at", "2015-01-04 02:21:08.858349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-04 02:21:08.864403"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 59ms (ActiveRecord: 0.8ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-04 02:21:08.875532"], ["updated_at", "2015-01-04 02:21:08.875532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-04 02:21:08.879074"], ["updated_at", "2015-01-04 02:21:08.879074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title116"], ["body", "body102"], ["author_id", 2], ["created_at", "2015-01-04 02:21:08.881517"], ["updated_at", "2015-01-04 02:21:08.881517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-04 02:21:08.884897"], ["updated_at", "2015-01-04 02:21:08.884897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 3], ["published_at", "2015-01-04 02:21:08.886108"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.887474"], ["updated_at", "2015-01-04 02:21:08.887474"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-04 02:21:08.891829"], ["updated_at", "2015-01-04 02:21:08.891829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 4], ["created_at", "2015-01-04 02:21:08.894211"], ["updated_at", "2015-01-04 02:21:08.894211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-04 02:21:08.897271"], ["updated_at", "2015-01-04 02:21:08.897271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title119"], ["body", "body105"], ["author_id", 5], ["published_at", "2015-01-04 02:21:08.898455"], ["state", "published"], ["created_at", "2015-01-04 02:21:08.899968"], ["updated_at", "2015-01-04 02:21:08.899968"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-04 02:21:08.904392"], ["updated_at", "2015-01-04 02:21:08.904392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-04 02:21:08.907178"], ["updated_at", "2015-01-04 02:21:08.907178"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f79a8ac7-5ef3-4b38-9293-47bbca948bdb) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Sent mail to email15@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Date: Sat, 03 Jan 2015 21:21:08 -0500 From: from@example.com To: email15@example.com Message-ID: <54a8a394e54fb_6f85104dffc781b6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a394e494f_6f85104dffc78022"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a394e494f_6f85104dffc78022 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a394e494f_6f85104dffc78022 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a394e494f_6f85104dffc78022-- [ActiveJob] [ActionMailer::DeliveryJob] [f79a8ac7-5ef3-4b38-9293-47bbca948bdb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.76ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-04 02:21:08.943957"], ["updated_at", "2015-01-04 02:21:08.943957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-04 02:21:08.946894"], ["updated_at", "2015-01-04 02:21:08.946894"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ec7b47e4-d27a-46b1-b614-2df41666564d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 67.7ms [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Sent mail to email16@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email16@example.com Message-ID: <54a8a3954cbb_6f85104dffc783f5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39541bc_6f85104dffc782db"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39541bc_6f85104dffc782db Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39541bc_6f85104dffc782db Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39541bc_6f85104dffc782db-- [ActiveJob] [ActionMailer::DeliveryJob] [ec7b47e4-d27a-46b1-b614-2df41666564d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.5ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-04 02:21:09.024262"], ["updated_at", "2015-01-04 02:21:09.024262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-04 02:21:09.027162"], ["updated_at", "2015-01-04 02:21:09.027162"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 28140294-0242-422b-bbd9-415267a35968) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Sent mail to email17@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email17@example.com Message-ID: <54a8a395ebc4_6f85104dffc785f8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a395e069_6f85104dffc7841"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a395e069_6f85104dffc7841 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a395e069_6f85104dffc7841 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a395e069_6f85104dffc7841-- [ActiveJob] [ActionMailer::DeliveryJob] [28140294-0242-422b-bbd9-415267a35968] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.81ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email18@example.com"], ["created_at", "2015-01-04 02:21:09.064766"], ["updated_at", "2015-01-04 02:21:09.064766"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d06239dc-9863-4f27-b3de-7df109d7ba4a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Sent mail to email18@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email18@example.com Message-ID: <54a8a3951777a_6f85104dffc787db@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39516cd0_6f85104dffc78651"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39516cd0_6f85104dffc78651 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a39516cd0_6f85104dffc78651 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39516cd0_6f85104dffc78651-- [ActiveJob] [ActionMailer::DeliveryJob] [d06239dc-9863-4f27-b3de-7df109d7ba4a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.24ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-04 02:21:09.101356"], ["updated_at", "2015-01-04 02:21:09.101356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-04 02:21:09.103993"], ["updated_at", "2015-01-04 02:21:09.103993"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e10b6aa7-346b-4d4e-ae97-4db964bc8b10) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.4ms [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Sent mail to email19@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email19@example.com Message-ID: <54a8a3952b822_6f85104dffc78917@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3952ad20_6f85104dffc78810"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3952ad20_6f85104dffc78810 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3952ad20_6f85104dffc78810 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3952ad20_6f85104dffc78810-- [ActiveJob] [ActionMailer::DeliveryJob] [e10b6aa7-346b-4d4e-ae97-4db964bc8b10] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.11ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-04 02:21:09.184200"], ["updated_at", "2015-01-04 02:21:09.184200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.187106"], ["updated_at", "2015-01-04 02:21:09.187106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-04 02:21:09.193555"], ["updated_at", "2015-01-04 02:21:09.193555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.196234"], ["updated_at", "2015-01-04 02:21:09.196234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-04 02:21:09.198896"], ["updated_at", "2015-01-04 02:21:09.198896"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-04 02:21:09.212260"], ["updated_at", "2015-01-04 02:21:09.212260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-04 02:21:09.216158"], ["updated_at", "2015-01-04 02:21:09.216158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.218658"], ["updated_at", "2015-01-04 02:21:09.218658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.223365"], ["updated_at", "2015-01-04 02:21:09.223365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-04 02:21:09.234452"], ["updated_at", "2015-01-04 02:21:09.234452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.236984"], ["updated_at", "2015-01-04 02:21:09.236984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-04 02:21:09.242115"], ["updated_at", "2015-01-04 02:21:09.242115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-04 02:21:09.246073"], ["updated_at", "2015-01-04 02:21:09.246073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.248592"], ["updated_at", "2015-01-04 02:21:09.248592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-04 02:21:09.260070"], ["updated_at", "2015-01-04 02:21:09.260070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.262484"], ["updated_at", "2015-01-04 02:21:09.262484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-04 02:21:09.267393"], ["updated_at", "2015-01-04 02:21:09.267393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-04 02:21:09.271262"], ["updated_at", "2015-01-04 02:21:09.271262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.274107"], ["updated_at", "2015-01-04 02:21:09.274107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420338069-28549-3485/test.jpg"} Unpermitted parameter: format Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-04 02:21:09.285888"], ["updated_at", "2015-01-04 02:21:09.285888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.329312"], ["updated_at", "2015-01-04 02:21:09.329312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-04 02:21:09.335311"], ["updated_at", "2015-01-04 02:21:09.335311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.338142"], ["updated_at", "2015-01-04 02:21:09.338142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420338069-28549-1178/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-04 02:21:09.349671"], ["updated_at", "2015-01-04 02:21:09.349671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.352185"], ["updated_at", "2015-01-04 02:21:09.352185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-04 02:21:09.364658"], ["updated_at", "2015-01-04 02:21:09.364658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.367429"], ["updated_at", "2015-01-04 02:21:09.367429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-04 02:21:09.372542"], ["updated_at", "2015-01-04 02:21:09.372542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-04 02:21:09.376649"], ["updated_at", "2015-01-04 02:21:09.376649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.379098"], ["updated_at", "2015-01-04 02:21:09.379098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.390290"], ["updated_at", "2015-01-04 02:21:09.390290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-04 02:21:09.397182"], ["updated_at", "2015-01-04 02:21:09.397182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 3], ["created_at", "2015-01-04 02:21:09.399650"], ["updated_at", "2015-01-04 02:21:09.399650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-04 02:21:09.405037"], ["updated_at", "2015-01-04 02:21:09.405037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.408152"], ["updated_at", "2015-01-04 02:21:09.408152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}} Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-04 02:21:09.418349"], ["updated_at", "2015-01-04 02:21:09.418349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.420992"], ["updated_at", "2015-01-04 02:21:09.420992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-04 02:21:09.427085"], ["updated_at", "2015-01-04 02:21:09.427085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.429832"], ["updated_at", "2015-01-04 02:21:09.429832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.434427"], ["updated_at", "2015-01-04 02:21:09.434427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-04 02:21:09.445079"], ["updated_at", "2015-01-04 02:21:09.445079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.447534"], ["updated_at", "2015-01-04 02:21:09.447534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email20@example.com"], ["created_at", "2015-01-04 02:21:09.453897"], ["updated_at", "2015-01-04 02:21:09.453897"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5c53669c-be6a-4c20-addf-74501b8cb3e5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.3ms [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Sent mail to email20@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email20@example.com Message-ID: <54a8a39580ea8_6f85104dffc791c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39580376_6f85104dffc7908c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39580376_6f85104dffc7908c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39580376_6f85104dffc7908c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39580376_6f85104dffc7908c-- [ActiveJob] [ActionMailer::DeliveryJob] [5c53669c-be6a-4c20-addf-74501b8cb3e5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 72.18ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-04 02:21:09.532233"], ["updated_at", "2015-01-04 02:21:09.532233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 1], ["published_at", "2015-01-04 02:21:09.533799"], ["state", "published"], ["created_at", "2015-01-04 02:21:09.535224"], ["updated_at", "2015-01-04 02:21:09.535224"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 57191f19-0dab-46c7-92b5-2e6d877dfaef) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.8ms [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Sent mail to email20@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email20@example.com Message-ID: <54a8a39589ee1_6f85104dffc7931c@Pandora.mail> Subject: New Post: title137 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3958942f_6f85104dffc792ed"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3958942f_6f85104dffc792ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******** title137 ******** body123 Written on January 04, 2015 at 02:21 AM UTC by first_name189 last_name189 You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3958942f_6f85104dffc792ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title137

body123
----==_mimepart_54a8a3958942f_6f85104dffc792ed-- [ActiveJob] [ActionMailer::DeliveryJob] [57191f19-0dab-46c7-92b5-2e6d877dfaef] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.45ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.1ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email21@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email21@example.com"], ["created_at", "2015-01-04 02:21:09.599958"], ["updated_at", "2015-01-04 02:21:09.599958"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 472253aa-9ca0-4f47-b9f1-a915ac60bcc7) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.8ms [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Sent mail to email21@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email21@example.com Message-ID: <54a8a395a46aa_6f85104dffc79660@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a395a3bc8_6f85104dffc795e2"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a395a3bc8_6f85104dffc795e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a395a3bc8_6f85104dffc795e2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a395a3bc8_6f85104dffc795e2-- [ActiveJob] [ActionMailer::DeliveryJob] [472253aa-9ca0-4f47-b9f1-a915ac60bcc7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-04 02:21:09.677848"], ["updated_at", "2015-01-04 02:21:09.677848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.680448"], ["updated_at", "2015-01-04 02:21:09.680448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:09.685397"], ["updated_at", "2015-01-04 02:21:09.685397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-04 02:21:09.688855"], ["state", "published"], ["updated_at", "2015-01-04 02:21:09.690740"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e9393915-3531-4ecd-92d1-658d279fbc42) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.9ms [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Sent mail to email21@example.com (43.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email21@example.com Message-ID: <54a8a395b0568_6f85104dffc7981@Pandora.mail> Subject: New Post: title138 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a395afaea_6f85104dffc79762"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a395afaea_6f85104dffc79762 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******** title138 ******** Written on January 04, 2015 at 02:21 AM UTC by first_name190 last_name190 You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a395afaea_6f85104dffc79762 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title138

----==_mimepart_54a8a395afaea_6f85104dffc79762-- [ActiveJob] [ActionMailer::DeliveryJob] [e9393915-3531-4ecd-92d1-658d279fbc42] Performed ActionMailer::DeliveryJob from Inline(mailers) in 69.04ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 23.9ms  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-04 02:21:09.793869"], ["updated_at", "2015-01-04 02:21:09.793869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 1], ["created_at", "2015-01-04 02:21:09.796697"], ["updated_at", "2015-01-04 02:21:09.796697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email22@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email22@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:09.800007"], ["updated_at", "2015-01-04 02:21:09.800007"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3a733667-a613-46ae-ab0c-0dc203ecde2b) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.1ms [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Sent mail to email22@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email22@example.com Message-ID: <54a8a395cb9ff_6f85104dffc80180@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a395caf15_6f85104dffc800d8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a395caf15_6f85104dffc800d8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a395caf15_6f85104dffc800d8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a395caf15_6f85104dffc800d8-- [ActiveJob] [ActionMailer::DeliveryJob] [3a733667-a613-46ae-ab0c-0dc203ecde2b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.84ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-04 02:21:09.838624"], ["updated_at", "2015-01-04 02:21:09.838624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 2], ["created_at", "2015-01-04 02:21:09.841163"], ["updated_at", "2015-01-04 02:21:09.841163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author52"], ["body", "body51"], ["post_id", 2], ["created_at", "2015-01-04 02:21:09.843439"], ["updated_at", "2015-01-04 02:21:09.843439"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.1ms) Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 62.1ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email23@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email23@example.com"], ["created_at", "2015-01-04 02:21:09.920219"], ["updated_at", "2015-01-04 02:21:09.920219"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6a44d73d-6be7-4260-bea2-2e5c67d8970f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (4.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.5ms [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Sent mail to email23@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Date: Sat, 03 Jan 2015 21:21:09 -0500 From: from@example.com To: email23@example.com Message-ID: <54a8a395e8ae7_6f85104dffc804b9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a395e803e_6f85104dffc803eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a395e803e_6f85104dffc803eb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a395e803e_6f85104dffc803eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a395e803e_6f85104dffc803eb-- [ActiveJob] [ActionMailer::DeliveryJob] [6a44d73d-6be7-4260-bea2-2e5c67d8970f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.21ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.5ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email24@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email24@example.com"], ["created_at", "2015-01-04 02:21:09.991881"], ["updated_at", "2015-01-04 02:21:09.991881"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 68.0ms [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Sent mail to email24@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email24@example.com Message-ID: <54a8a396fffd_6f85104dffc8071e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a396f4d4_6f85104dffc8063a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a396f4d4_6f85104dffc8063a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a396f4d4_6f85104dffc8063a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a396f4d4_6f85104dffc8063a-- [ActiveJob] [ActionMailer::DeliveryJob] [7f591bd3-5dff-4ea5-9d95-5ca0a23d95d8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 71.79ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email25@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email25@example.com"], ["created_at", "2015-01-04 02:21:10.069998"], ["updated_at", "2015-01-04 02:21:10.069998"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2dd60c01-729e-4fe5-9b6c-f905d949730c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Sent mail to email25@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email25@example.com Message-ID: <54a8a39618d52_6f85104dffc809d4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39618278_6f85104dffc808cd"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39618278_6f85104dffc808cd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a39618278_6f85104dffc808cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39618278_6f85104dffc808cd-- [ActiveJob] [ActionMailer::DeliveryJob] [2dd60c01-729e-4fe5-9b6c-f905d949730c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.44ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-04 02:21:10.112697"], ["updated_at", "2015-01-04 02:21:10.112697"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 91de0b32-c5e7-4cae-a9bc-e5c65e7b6306) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 69.7ms [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Sent mail to foo@bar.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8a3962ddba_6f85104dffc81178@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3962d284_6f85104dffc810e4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3962d284_6f85104dffc810e4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3962d284_6f85104dffc810e4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3962d284_6f85104dffc810e4-- [ActiveJob] [ActionMailer::DeliveryJob] [91de0b32-c5e7-4cae-a9bc-e5c65e7b6306] Performed ActionMailer::DeliveryJob from Inline(mailers) in 73.71ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-04 02:21:10.195079"], ["updated_at", "2015-01-04 02:21:10.195079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.197762"], ["updated_at", "2015-01-04 02:21:10.197762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:10.200931"], ["updated_at", "2015-01-04 02:21:10.200931"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.2ms [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Sent mail to foo@bar.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: foo@bar.com Message-ID: <54a8a39639dc1_6f85104dffc81316@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39639309_6f85104dffc81238"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39639309_6f85104dffc81238 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a39639309_6f85104dffc81238 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a39639309_6f85104dffc81238-- [ActiveJob] [ActionMailer::DeliveryJob] [2bff364a-b8db-4fc5-b5a1-a5c5f0d7c612] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-04 02:21:10.247423"], ["updated_at", "2015-01-04 02:21:10.247423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 1], ["published_at", "2015-01-04 02:21:10.249041"], ["state", "published"], ["created_at", "2015-01-04 02:21:10.250502"], ["updated_at", "2015-01-04 02:21:10.250502"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email27@example.com"], ["post_id", 1], ["created_at", "2015-01-04 02:21:10.255695"], ["updated_at", "2015-01-04 02:21:10.255695"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2980b976-659e-438b-a366-deadf2a42a96) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 70.9ms [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Sent mail to email27@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email27@example.com Message-ID: <54a8a39651289_6f85104dffc815db@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39650739_6f85104dffc814d7"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39650739_6f85104dffc814d7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******************* You'll be notified! ******************* You signed up to be notified of any new comments on this post ( http://localhost:3000/proclaim/posts/1 ). You're receiving this email because you requested to be notified if a new comment was made on this post ( http://localhost:3000/proclaim/posts/1 ) at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39650739_6f85104dffc814d7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

You'll be notified!

You signed up to be notified of any new comments on this post.

----==_mimepart_54a8a39650739_6f85104dffc814d7-- [ActiveJob] [ActionMailer::DeliveryJob] [2980b976-659e-438b-a366-deadf2a42a96] Performed ActionMailer::DeliveryJob from Inline(mailers) in 74.92ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email28@example.com"], ["created_at", "2015-01-04 02:21:10.337287"], ["updated_at", "2015-01-04 02:21:10.337287"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a6fcc865-5f15-4643-80c0-bf1bf7c04477) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Sent mail to email28@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email28@example.com Message-ID: <54a8a3965a0c6_6f85104dffc81719@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3965961d_6f85104dffc81691"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3965961d_6f85104dffc81691 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a3965961d_6f85104dffc81691 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3965961d_6f85104dffc81691-- [ActiveJob] [ActionMailer::DeliveryJob] [a6fcc865-5f15-4643-80c0-bf1bf7c04477] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.03ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-04 02:21:10.380915"], ["updated_at", "2015-01-04 02:21:10.380915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.384341"], ["updated_at", "2015-01-04 02:21:10.384341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:10.390147"], ["updated_at", "2015-01-04 02:21:10.390147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-04 02:21:10.396967"], ["updated_at", "2015-01-04 02:21:10.396967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.399583"], ["updated_at", "2015-01-04 02:21:10.399583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-04 02:21:10.404958"], ["updated_at", "2015-01-04 02:21:10.404958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-04 02:21:10.456511"], ["updated_at", "2015-01-04 02:21:10.456511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["created_at", "2015-01-04 02:21:10.459355"], ["updated_at", "2015-01-04 02:21:10.459355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email29@example.com"], ["created_at", "2015-01-04 02:21:10.468122"], ["updated_at", "2015-01-04 02:21:10.468122"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 72ab750a-a110-4892-98ad-7e3decfcce1d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.7ms [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Sent mail to email29@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email29@example.com Message-ID: <54a8a3967a783_6f85104dffc8195c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39679b68_6f85104dffc8182"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39679b68_6f85104dffc8182 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a39679b68_6f85104dffc8182 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39679b68_6f85104dffc8182-- [ActiveJob] [ActionMailer::DeliveryJob] [72ab750a-a110-4892-98ad-7e3decfcce1d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.81ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email30@example.com"], ["created_at", "2015-01-04 02:21:10.506079"], ["updated_at", "2015-01-04 02:21:10.506079"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3dcf7998-c4d1-4b94-bd20-aae11d07e2a4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Sent mail to email30@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email30@example.com Message-ID: <54a8a3968341d_6f85104dffc82148@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a39682970_6f85104dffc8201f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a39682970_6f85104dffc8201f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a39682970_6f85104dffc8201f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a39682970_6f85104dffc8201f-- [ActiveJob] [ActionMailer::DeliveryJob] [3dcf7998-c4d1-4b94-bd20-aae11d07e2a4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.31ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email31@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-04 02:21:10.615336"], ["updated_at", "2015-01-04 02:21:10.615336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email32@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email32@example.com"], ["created_at", "2015-01-04 02:21:10.624298"], ["updated_at", "2015-01-04 02:21:10.624298"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 40a761bf-cf0e-473e-a401-496a0e9695c2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Sent mail to email32@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email32@example.com Message-ID: <54a8a396a0722_6f85104dffc82327@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a3969fbdb_6f85104dffc82244"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a3969fbdb_6f85104dffc82244 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a3969fbdb_6f85104dffc82244 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a3969fbdb_6f85104dffc82244-- [ActiveJob] [ActionMailer::DeliveryJob] [40a761bf-cf0e-473e-a401-496a0e9695c2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.03ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 40ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email33@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-04 02:21:10.673305"], ["updated_at", "2015-01-04 02:21:10.673305"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (7.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 32.9ms [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Sent mail to email33@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email33@example.com Message-ID: <54a8a396aed07_6f85104dffc8254e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a396ae1fc_6f85104dffc8246f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a396ae1fc_6f85104dffc8246f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a396ae1fc_6f85104dffc8246f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a396ae1fc_6f85104dffc8246f-- [ActiveJob] [ActionMailer::DeliveryJob] [ee6ef47b-5fb3-4b7c-bef2-247ecf8adca0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.41ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 50ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-04 02:21:10.727256"], ["updated_at", "2015-01-04 02:21:10.727256"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6ae81ddf-721d-4753-84f1-0cee6cc9ee07) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.6ms [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Sent mail to email34@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email34@example.com Message-ID: <54a8a396c3afa_6f85104dffc82793@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a396c2fd1_6f85104dffc826eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a396c2fd1_6f85104dffc826eb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d ). ----==_mimepart_54a8a396c2fd1_6f85104dffc826eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a396c2fd1_6f85104dffc826eb-- [ActiveJob] [ActionMailer::DeliveryJob] [6ae81ddf-721d-4753-84f1-0cee6cc9ee07] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.45ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email35@example.com"], ["created_at", "2015-01-04 02:21:10.805946"], ["updated_at", "2015-01-04 02:21:10.805946"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2c4a33e6-15df-4209-aaa2-0d29c411c995) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Sent mail to email35@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Date: Sat, 03 Jan 2015 21:21:10 -0500 From: from@example.com To: email35@example.com Message-ID: <54a8a396cc64f_6f85104dffc8291@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54a8a396cbb9f_6f85104dffc8283f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54a8a396cbb9f_6f85104dffc8283f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit *********************** Thanks for subscribing! *********************** You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). You're receiving this email because you requested to be notified if a new post was made at localhost:3000/proclaim ( http://localhost:3000/proclaim/posts ). If you no longer wish to receive these emails, simply unsubscribe ( http://localhost:3000/proclaim/subscriptions/unsubscribe/BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec ). ----==_mimepart_54a8a396cbb9f_6f85104dffc8283f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Thanks for subscribing!

You'll now begin receiving a notification each time a new post is made at localhost:3000/proclaim.

----==_mimepart_54a8a396cbb9f_6f85104dffc8283f-- [ActiveJob] [ActionMailer::DeliveryJob] [2c4a33e6-15df-4209-aaa2-0d29c411c995] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.03ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.3ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-07 00:35:43.368458"], ["updated_at", "2015-01-07 00:35:43.368458"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c60ee10b-0b2f-4dba-b47c-04395634e407) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (10.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 277.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Sent mail to email1@example.com (11.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Date: Tue, 06 Jan 2015 19:35:43 -0500 From: from@example.com To: email1@example.com Message-ID: <54ac7f5fa82b8_211740533048777@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f5fa62d6_2117405330486a6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f5fa62d6_2117405330486a6 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_54ac7f5fa62d6_2117405330486a6 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_54ac7f5fa62d6_2117405330486a6-- [ActiveJob] [ActionMailer::DeliveryJob] [c60ee10b-0b2f-4dba-b47c-04395634e407] Performed ActionMailer::DeliveryJob from Inline(mailers) in 289.64ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:35:43 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.8ms) Completed 200 OK in 152ms (Views: 146.9ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:35:43 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-06 19:35:43 -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: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-07 00:35:43.899298"], ["updated_at", "2015-01-07 00:35:43.899298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 1], ["published_at", "2015-01-07 00:35:43.902351"], ["state", "published"], ["created_at", "2015-01-07 00:35:43.904042"], ["updated_at", "2015-01-07 00:35:43.904042"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email2@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:35:43.908137"], ["updated_at", "2015-01-07 00:35:43.908137"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 71ea9fc2-9601-4c48-8b41-89c533f3f78e) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (6.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.8ms [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Sent mail to email2@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Date: Tue, 06 Jan 2015 19:35:43 -0500 From: from@example.com To: email2@example.com Message-ID: <54ac7f5fe5faa_211740533048955@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f5fe56d0_21174053304882f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f5fe56d0_21174053304882f 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_54ac7f5fe56d0_21174053304882f 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_54ac7f5fe56d0_21174053304882f-- [ActiveJob] [ActionMailer::DeliveryJob] [71ea9fc2-9601-4c48-8b41-89c533f3f78e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.78ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:35:43 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.4ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:35:43 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-06 19:35:43 -0500 Processing by Proclaim::SubscriptionsController#unsubscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribed.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-07 00:35:44.310087"], ["updated_at", "2015-01-07 00:35:44.310087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.313106"], ["updated_at", "2015-01-07 00:35:44.313106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 1], ["created_at", "2015-01-07 00:35:44.315450"], ["updated_at", "2015-01-07 00:35:44.315450"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-07 00:35:44.342309"], ["updated_at", "2015-01-07 00:35:44.342309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title3"], ["body", "body3"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.345055"], ["updated_at", "2015-01-07 00:35:44.345055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email3@example.com"], ["created_at", "2015-01-07 00:35:44.351505"], ["updated_at", "2015-01-07 00:35:44.351505"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 02120d7b-5ddd-4ab9-9c4b-57706a0cda4d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] 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] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.7ms [ActiveJob] [ActionMailer::DeliveryJob] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] Sent mail to email3@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email3@example.com Message-ID: <54ac7f605d119_21174053304916e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f605c857_211740533049068"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f605c857_211740533049068 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_54ac7f605c857_211740533049068 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_54ac7f605c857_211740533049068-- [ActiveJob] [ActionMailer::DeliveryJob] [02120d7b-5ddd-4ab9-9c4b-57706a0cda4d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.42ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email4@example.com"], ["created_at", "2015-01-07 00:35:44.385441"], ["updated_at", "2015-01-07 00:35:44.385441"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a6a3c6b-f66b-4f43-8e87-0470fabda67d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] 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] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.5ms [ActiveJob] [ActionMailer::DeliveryJob] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] Sent mail to email4@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email4@example.com Message-ID: <54ac7f6064f21_2117405330493c0@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6064672_2117405330492b0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6064672_2117405330492b0 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_54ac7f6064672_2117405330492b0 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_54ac7f6064672_2117405330492b0-- [ActiveJob] [ActionMailer::DeliveryJob] [4a6a3c6b-f66b-4f43-8e87-0470fabda67d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.12ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email5@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email5@example.com"], ["created_at", "2015-01-07 00:35:44.431519"], ["updated_at", "2015-01-07 00:35:44.431519"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b688b43f-5d38-40df-aca3-099ddb73fe8c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b688b43f-5d38-40df-aca3-099ddb73fe8c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b688b43f-5d38-40df-aca3-099ddb73fe8c] 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] [b688b43f-5d38-40df-aca3-099ddb73fe8c] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.5ms [ActiveJob] [ActionMailer::DeliveryJob] [b688b43f-5d38-40df-aca3-099ddb73fe8c] Sent mail to email5@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b688b43f-5d38-40df-aca3-099ddb73fe8c] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email5@example.com Message-ID: <54ac7f6070c50_2117405330495a5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f60703ba_21174053304948c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f60703ba_21174053304948c 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_54ac7f60703ba_21174053304948c 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_54ac7f60703ba_21174053304948c-- [ActiveJob] [ActionMailer::DeliveryJob] [b688b43f-5d38-40df-aca3-099ddb73fe8c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.11ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email6@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email6@example.com"], ["created_at", "2015-01-07 00:35:44.466064"], ["updated_at", "2015-01-07 00:35:44.466064"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 14fa172b-7554-469f-b355-91ce59348258) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [14fa172b-7554-469f-b355-91ce59348258] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [14fa172b-7554-469f-b355-91ce59348258] 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] [14fa172b-7554-469f-b355-91ce59348258] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.6ms [ActiveJob] [ActionMailer::DeliveryJob] [14fa172b-7554-469f-b355-91ce59348258] Sent mail to email6@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [14fa172b-7554-469f-b355-91ce59348258] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email6@example.com Message-ID: <54ac7f60789a1_2117405330497f5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6078164_21174053304964c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6078164_21174053304964c 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_54ac7f6078164_21174053304964c 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_54ac7f6078164_21174053304964c-- [ActiveJob] [ActionMailer::DeliveryJob] [14fa172b-7554-469f-b355-91ce59348258] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.16ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-07 00:35:44.515143"], ["updated_at", "2015-01-07 00:35:44.515143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email7@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email7@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email7@example.com"], ["created_at", "2015-01-07 00:35:44.522836"], ["updated_at", "2015-01-07 00:35:44.522836"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8adab000-df80-401f-b853-1194de3c84ba) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8adab000-df80-401f-b853-1194de3c84ba] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [8adab000-df80-401f-b853-1194de3c84ba] 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] [8adab000-df80-401f-b853-1194de3c84ba] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.9ms [ActiveJob] [ActionMailer::DeliveryJob] [8adab000-df80-401f-b853-1194de3c84ba] Sent mail to email7@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8adab000-df80-401f-b853-1194de3c84ba] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email7@example.com Message-ID: <54ac7f6086f2a_2117405330499ca@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f60866a7_211740533049833"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f60866a7_211740533049833 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_54ac7f60866a7_211740533049833 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_54ac7f60866a7_211740533049833-- [ActiveJob] [ActionMailer::DeliveryJob] [8adab000-df80-401f-b853-1194de3c84ba] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.54ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 37ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email8@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (23.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (42.3ms) Completed 200 OK in 45ms (Views: 43.9ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email9@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email9@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email9@example.com"], ["created_at", "2015-01-07 00:35:44.619809"], ["updated_at", "2015-01-07 00:35:44.619809"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ca156ffa-1570-4091-9125-69c04b9f3e85) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ca156ffa-1570-4091-9125-69c04b9f3e85] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ca156ffa-1570-4091-9125-69c04b9f3e85] 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] [ca156ffa-1570-4091-9125-69c04b9f3e85] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 32.7ms [ActiveJob] [ActionMailer::DeliveryJob] [ca156ffa-1570-4091-9125-69c04b9f3e85] Sent mail to email9@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [ca156ffa-1570-4091-9125-69c04b9f3e85] Date: Tue, 06 Jan 2015 19:35:44 -0500 From: from@example.com To: email9@example.com Message-ID: <54ac7f60a0959_2117405330501b6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f60a0054_211740533050032"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f60a0054_211740533050032 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_54ac7f60a0054_211740533050032 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_54ac7f60a0054_211740533050032-- [ActiveJob] [ActionMailer::DeliveryJob] [ca156ffa-1570-4091-9125-69c04b9f3e85] Performed ActionMailer::DeliveryJob from Inline(mailers) in 36.68ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 45ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-07 00:35:44.673875"], ["updated_at", "2015-01-07 00:35:44.673875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.676736"], ["updated_at", "2015-01-07 00:35:44.676736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-07 00:35:44.679682"], ["updated_at", "2015-01-07 00:35:44.679682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 2], ["published_at", "2015-01-07 00:35:44.680978"], ["state", "published"], ["created_at", "2015-01-07 00:35:44.682290"], ["updated_at", "2015-01-07 00:35:44.682290"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (6.2ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in ----------------------------------------------------------------------- Processing by Proclaim::PostsController#new as HTML Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-07 00:35:44.712377"], ["updated_at", "2015-01-07 00:35:44.712377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-07 00:35:44.715782"], ["updated_at", "2015-01-07 00:35:44.715782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 2], ["created_at", "2015-01-07 00:35:44.717970"], ["updated_at", "2015-01-07 00:35:44.717970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title6"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:35:44.733196"], ["updated_at", "2015-01-07 00:35:44.733196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-07 00:35:44.737899"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 16ms (ActiveRecord: 0.8ms) Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-07 00:35:44.748904"], ["updated_at", "2015-01-07 00:35:44.748904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-07 00:35:44.752296"], ["updated_at", "2015-01-07 00:35:44.752296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body7", "title"=>"title7"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title7"], ["body", "body7"], ["author_id", 1], ["published_at", "2015-01-07 00:35:44.758590"], ["state", "published"], ["created_at", "2015-01-07 00:35:44.761270"], ["updated_at", "2015-01-07 00:35:44.761270"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-07 00:35:44.771749"], ["updated_at", "2015-01-07 00:35:44.771749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-07 00:35:44.775190"], ["updated_at", "2015-01-07 00:35:44.775190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title8"], ["body", "body8"], ["author_id", 2], ["published_at", "2015-01-07 00:35:44.776479"], ["state", "published"], ["created_at", "2015-01-07 00:35:44.777806"], ["updated_at", "2015-01-07 00:35:44.777806"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (9.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (16.5ms) Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-07 00:35:44.803864"], ["updated_at", "2015-01-07 00:35:44.803864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title9"], ["body", "body9"], ["author_id", 3], ["created_at", "2015-01-07 00:35:44.806190"], ["updated_at", "2015-01-07 00:35:44.806190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) 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.5ms | ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-07 00:35:44.819606"], ["updated_at", "2015-01-07 00:35:44.819606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-07 00:35:44.823424"], ["updated_at", "2015-01-07 00:35:44.823424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body10", "title"=>"title10"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title10"], ["body", "body10"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.832298"], ["updated_at", "2015-01-07 00:35:44.832298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-07 00:35:44.841802"], ["updated_at", "2015-01-07 00:35:44.841802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-07 00:35:44.845261"], ["updated_at", "2015-01-07 00:35:44.845261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title11"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title11"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.858096"], ["updated_at", "2015-01-07 00:35:44.858096"]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:35:44.860096"], ["updated_at", "2015-01-07 00:35:44.860096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-07 00:35:44.865405"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 18ms (ActiveRecord: 1.1ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.0ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-07 00:35:44.876483"], ["updated_at", "2015-01-07 00:35:44.876483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (6.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (8.2ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-07 00:35:44.895287"], ["updated_at", "2015-01-07 00:35:44.895287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-07 00:35:44.898652"], ["updated_at", "2015-01-07 00:35:44.898652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title12"], ["body", "body12"], ["author_id", 2], ["created_at", "2015-01-07 00:35:44.900826"], ["updated_at", "2015-01-07 00:35:44.900826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-07 00:35:44.917696"], ["updated_at", "2015-01-07 00:35:44.917696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title13"], ["body", "body13"], ["author_id", 1], ["published_at", "2015-01-07 00:35:44.919521"], ["state", "published"], ["created_at", "2015-01-07 00:35:44.921006"], ["updated_at", "2015-01-07 00:35:44.921006"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.2ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-07 00:35:44.936832"], ["updated_at", "2015-01-07 00:35:44.936832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title14"], ["body", "body14"], ["author_id", 2], ["created_at", "2015-01-07 00:35:44.939395"], ["updated_at", "2015-01-07 00:35:44.939395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-07 00:35:44.945524"], ["updated_at", "2015-01-07 00:35:44.945524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-07 00:35:44.949221"], ["updated_at", "2015-01-07 00:35:44.949221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body15"], ["author_id", 2], ["created_at", "2015-01-07 00:35:44.951361"], ["updated_at", "2015-01-07 00:35:44.951361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (7.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (7.9ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-07 00:35:44.969854"], ["updated_at", "2015-01-07 00:35:44.969854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title16"], ["body", "body16"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.972630"], ["updated_at", "2015-01-07 00:35:44.972630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-07 00:35:44.985443"], ["updated_at", "2015-01-07 00:35:44.985443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body17"], ["author_id", 1], ["created_at", "2015-01-07 00:35:44.988045"], ["updated_at", "2015-01-07 00:35:44.988045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-07 00:35:44.998684"], ["updated_at", "2015-01-07 00:35:44.998684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-07 00:35:45.001997"], ["updated_at", "2015-01-07 00:35:45.001997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title18"], ["body", "body18"], ["author_id", 2], ["created_at", "2015-01-07 00:35:45.004118"], ["updated_at", "2015-01-07 00:35:45.004118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-07 00:35:45.006761"], ["updated_at", "2015-01-07 00:35:45.006761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title19"], ["body", "body19"], ["author_id", 3], ["published_at", "2015-01-07 00:35:45.008263"], ["state", "published"], ["created_at", "2015-01-07 00:35:45.009682"], ["updated_at", "2015-01-07 00:35:45.009682"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (14.0ms) Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-07 00:35:45.033047"], ["updated_at", "2015-01-07 00:35:45.033047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-07 00:35:45.036493"], ["updated_at", "2015-01-07 00:35:45.036493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body20"], ["author_id", 2], ["created_at", "2015-01-07 00:35:45.038970"], ["updated_at", "2015-01-07 00:35:45.038970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body20", "title"=>"title20"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-07 00:35:45.055988"], ["updated_at", "2015-01-07 00:35:45.055988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body21", "title"=>"title21"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-07 00:35:45.067678"], ["updated_at", "2015-01-07 00:35:45.067678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-07 00:35:45.071439"], ["updated_at", "2015-01-07 00:35:45.071439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title22"], ["body", "body22"], ["author_id", 2], ["created_at", "2015-01-07 00:35:45.073964"], ["updated_at", "2015-01-07 00:35:45.073964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body22", "title"=>"title22"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-07 00:35:45.080294"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-07 00:35:45.082668"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-07 00:35:45.091793"], ["updated_at", "2015-01-07 00:35:45.091793"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title23"], ["body", "body23"], ["author_id", 1], ["created_at", "2015-01-07 00:35:45.095149"], ["updated_at", "2015-01-07 00:35:45.095149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body23", "title"=>"title23"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-07 00:35:45.174631"], ["updated_at", "2015-01-07 00:35:45.174631"]]  (63.8ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title24"], ["body", "body24"], ["author_id", 1], ["published_at", "2015-01-07 00:35:45.241186"], ["state", "published"], ["created_at", "2015-01-07 00:35:45.245716"], ["updated_at", "2015-01-07 00:35:45.245716"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author5"], ["body", "body4"], ["post_id", 1], ["created_at", "2015-01-07 00:35:45.285942"], ["updated_at", "2015-01-07 00:35:45.285942"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (36.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:49 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.6ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.3ms) 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 (5.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (24.6ms) Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 1.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-06 19:35:49 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-06 19:35:49 -0500  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35:50 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.7ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-06 19:35:50 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (41.0ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (41.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.8ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.5ms) DELETE FROM sqlite_sequence where name = 'users';  (41.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-07 00:35:51.172649"], ["updated_at", "2015-01-07 00:35:51.172649"]]  (40.6ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title25"], ["body", "body25"], ["author_id", 1], ["published_at", "2015-01-07 00:35:51.216758"], ["state", "published"], ["created_at", "2015-01-07 00:35:51.220628"], ["updated_at", "2015-01-07 00:35:51.220628"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (66.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-07 00:35:51.295031"], ["updated_at", "2015-01-07 00:35:51.295031"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (50.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:51 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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 (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.9ms) Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35:52 -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"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (49.3ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (40.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (25.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.5ms) DELETE FROM sqlite_sequence where name = 'users';  (40.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (52.6ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-07 00:35:52.464278"], ["updated_at", "2015-01-07 00:35:52.464278"]]  (38.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title26"], ["body", "body26"], ["author_id", 1], ["published_at", "2015-01-07 00:35:52.504603"], ["state", "published"], ["created_at", "2015-01-07 00:35:52.506185"], ["updated_at", "2015-01-07 00:35:52.506185"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:52 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35:53 -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"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:35:53.260088"], ["updated_at", "2015-01-07 00:35:53.260088"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 19ms (Views: 0.2ms | ActiveRecord: 1.9ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (50.0ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (37.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.4ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.2ms) DELETE FROM sqlite_sequence where name = 'users';  (32.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-07 00:35:53.622622"], ["updated_at", "2015-01-07 00:35:53.622622"]]  (39.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-07 00:35:53.670882"], ["updated_at", "2015-01-07 00:35:53.670882"]]  (32.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title27"], ["body", "body27"], ["author_id", 2], ["published_at", "2015-01-07 00:35:53.708463"], ["state", "published"], ["created_at", "2015-01-07 00:35:53.712333"], ["updated_at", "2015-01-07 00:35:53.712333"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:53 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] 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 (9.7ms) Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35:54 -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"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:35:54.500039"], ["updated_at", "2015-01-07 00:35:54.500039"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:35:54.511005"], ["updated_at", "2015-01-07 00:35:54.511005"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 167b348d-88c3-4f26-8e9a-e79b36f77338) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] 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] [167b348d-88c3-4f26-8e9a-e79b36f77338] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.3ms [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] Sent mail to example@example.com (3.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] Date: Tue, 06 Jan 2015 19:35:54 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f6a86992_211718a90205037b@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6a85de4_211718a90205021b"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6a85de4_211718a90205021b 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_54ac7f6a85de4_211718a90205021b 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_54ac7f6a85de4_211718a90205021b-- [ActiveJob] [ActionMailer::DeliveryJob] [167b348d-88c3-4f26-8e9a-e79b36f77338] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.2ms  (47.2ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.8ms) 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 (14.9ms) Completed 200 OK in 138ms (Views: 0.8ms | ActiveRecord: 50.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (44.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (42.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (34.7ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.2ms) DELETE FROM sqlite_sequence where name = 'users';  (38.4ms) DELETE FROM "proclaim_subscriptions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (57.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (43.7ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-07 00:35:55.085871"], ["updated_at", "2015-01-07 00:35:55.085871"]]  (33.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title28"], ["body", "body28"], ["author_id", 1], ["published_at", "2015-01-07 00:35:55.120829"], ["state", "published"], ["created_at", "2015-01-07 00:35:55.122505"], ["updated_at", "2015-01-07 00:35:55.122505"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.9ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author7"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-07 00:35:55.162612"], ["updated_at", "2015-01-07 00:35:55.162612"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (44.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:55 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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/posts/show.html.erb within layouts/application (14.2ms) Completed 200 OK in 18ms (Views: 15.4ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35: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"=>"7", "solution"=>"7"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:35:55.998203"], ["updated_at", "2015-01-07 00:35:55.998203"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:35:56.009610"], ["updated_at", "2015-01-07 00:35:56.009610"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 08ce0176-e95c-471f-85ed-03d388345ca2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (6.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.7ms [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Sent mail to example@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Date: Tue, 06 Jan 2015 19:35:56 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f6cd467_211718a90205053c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6cc5f9_211718a9020504fd"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6cc5f9_211718a9020504fd 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_54ac7f6cc5f9_211718a9020504fd 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_54ac7f6cc5f9_211718a9020504fd-- [ActiveJob] [ActionMailer::DeliveryJob] [08ce0176-e95c-471f-85ed-03d388345ca2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 40.64ms  (46.1ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.6ms) Completed 200 OK in 125ms (Views: 0.7ms | ActiveRecord: 49.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (40.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (50.7ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (48.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.6ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.9ms) DELETE FROM sqlite_sequence where name = 'users';  (37.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.4ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-07 00:35:56.583035"], ["updated_at", "2015-01-07 00:35:56.583035"]]  (38.2ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title29"], ["body", "body29"], ["author_id", 1], ["published_at", "2015-01-07 00:35:56.623917"], ["state", "published"], ["created_at", "2015-01-07 00:35:56.628100"], ["updated_at", "2015-01-07 00:35:56.628100"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:56 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (11.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.7ms) Completed 200 OK in 21ms (Views: 17.1ms | ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35:57 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:35:57.393279"], ["updated_at", "2015-01-07 00:35:57.393279"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:35:57.403769"], ["updated_at", "2015-01-07 00:35:57.403769"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: afc0c3c1-ff86-4804-ae0d-7ead4f061aff) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] 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] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.7ms [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Date: Tue, 06 Jan 2015 19:35:57 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f6d6cd2e_211718a902050787@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6d6c1b4_211718a9020506dc"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6d6c1b4_211718a9020506dc 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_54ac7f6d6c1b4_211718a9020506dc 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_54ac7f6d6c1b4_211718a9020506dc-- [ActiveJob] [ActionMailer::DeliveryJob] [afc0c3c1-ff86-4804-ae0d-7ead4f061aff] Performed ActionMailer::DeliveryJob from Inline(mailers) in 36.52ms  (52.6ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (6.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (17.2ms) Completed 200 OK in 142ms (Views: 0.5ms | ActiveRecord: 55.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (46.7ms) DELETE FROM "proclaim_posts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (48.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.0ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.5ms) DELETE FROM sqlite_sequence where name = 'users';  (40.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (37.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-07 00:35:57.983885"], ["updated_at", "2015-01-07 00:35:57.983885"]]  (40.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-07 00:35:58.028261"], ["updated_at", "2015-01-07 00:35:58.028261"]]  (43.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title30"], ["body", "body30"], ["author_id", 2], ["published_at", "2015-01-07 00:35:58.073194"], ["state", "published"], ["created_at", "2015-01-07 00:35:58.075137"], ["updated_at", "2015-01-07 00:35:58.075137"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (42.3ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author8"], ["body", "body7"], ["post_id", 1], ["created_at", "2015-01-07 00:35:58.123674"], ["updated_at", "2015-01-07 00:35:58.123674"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (46.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:58 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) 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 (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 (16.0ms) Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:35: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"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:35:59.103448"], ["updated_at", "2015-01-07 00:35:59.103448"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.4ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:35:59.116303"], ["updated_at", "2015-01-07 00:35:59.116303"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c53ecf14-1844-42e9-9e8f-cc06b3f2d726) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] 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] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.3ms [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Sent mail to example@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Date: Tue, 06 Jan 2015 19:35:59 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f6f267c5_211718a9020509c7@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f6f25d15_211718a9020508b1"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f6f25d15_211718a9020508b1 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_54ac7f6f25d15_211718a9020508b1 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_54ac7f6f25d15_211718a9020508b1-- [ActiveJob] [ActionMailer::DeliveryJob] [c53ecf14-1844-42e9-9e8f-cc06b3f2d726] Performed ActionMailer::DeliveryJob from Inline(mailers) in 39.45ms  (58.8ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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/comments/_comment.html.erb (8.1ms) Completed 200 OK in 146ms (Views: 0.7ms | ActiveRecord: 63.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (57.7ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.3ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (48.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (42.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (42.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.8ms) DELETE FROM sqlite_sequence where name = 'users';  (49.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (42.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-07 00:35:59.760132"], ["updated_at", "2015-01-07 00:35:59.760132"]]  (42.6ms) commit transaction  (0.3ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body31"], ["author_id", 1], ["published_at", "2015-01-07 00:35:59.808444"], ["state", "published"], ["created_at", "2015-01-07 00:35:59.813042"], ["updated_at", "2015-01-07 00:35:59.813042"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:35:59 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36: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"=>{"subscribe"=>"true", "email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:36:00.501256"], ["updated_at", "2015-01-07 00:36:00.501256"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (49.9ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (31.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.2ms) DELETE FROM sqlite_sequence where name = 'users';  (35.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-07 00:36:00.877146"], ["updated_at", "2015-01-07 00:36:00.877146"]]  (35.9ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title32"], ["body", "body32"], ["author_id", 1], ["published_at", "2015-01-07 00:36:00.915953"], ["state", "published"], ["created_at", "2015-01-07 00:36:00.920458"], ["updated_at", "2015-01-07 00:36:00.920458"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (29.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:00 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.3ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36: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"=>"3", "solution"=>"3"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:36:01.785833"], ["updated_at", "2015-01-07 00:36:01.785833"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.7ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:01.797061"], ["updated_at", "2015-01-07 00:36:01.797061"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 845db83d-3df3-4fd2-b774-7c3320f84cc8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (6.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 36.1ms [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Sent mail to example@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Date: Tue, 06 Jan 2015 19:36:01 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f71cd894_211718a9020511b@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f71ccd45_211718a9020510be"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f71ccd45_211718a9020510be 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_54ac7f71ccd45_211718a9020510be 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_54ac7f71ccd45_211718a9020510be-- [ActiveJob] [ActionMailer::DeliveryJob] [845db83d-3df3-4fd2-b774-7c3320f84cc8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.8ms  (22.7ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.1ms) Completed 200 OK in 106ms (Views: 0.5ms | ActiveRecord: 25.6ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (50.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.3ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (31.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.7ms) DELETE FROM sqlite_sequence where name = 'users';  (72.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (54.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-07 00:36:02.388189"], ["updated_at", "2015-01-07 00:36:02.388189"]]  (33.6ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-07 00:36:02.429467"], ["updated_at", "2015-01-07 00:36:02.429467"]]  (55.3ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title33"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-07 00:36:02.491536"], ["updated_at", "2015-01-07 00:36:02.491536"]]  (47.2ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:02.553585"], ["updated_at", "2015-01-07 00:36:02.553585"]]  (47.1ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-07 00:36:02.611166"], ["id", 1]]  (88.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:36:02 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.7ms) 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.2ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-06 19:36:02 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.3ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] 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.6ms) Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.5ms)  (28.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (30.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.1ms) DELETE FROM sqlite_sequence where name = 'users';  (44.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (44.6ms) DELETE FROM "proclaim_images";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-07 00:36:03.858322"], ["updated_at", "2015-01-07 00:36:03.858322"]]  (50.2ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:36:03 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (1.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:04 -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.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (41.2ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (26.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (32.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.7ms) DELETE FROM sqlite_sequence where name = 'users';  (35.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.9ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-07 00:36:04.788572"], ["updated_at", "2015-01-07 00:36:04.788572"]]  (31.4ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-07 00:36:04.827300"], ["updated_at", "2015-01-07 00:36:04.827300"]]  (38.6ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title34"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-07 00:36:04.874936"], ["updated_at", "2015-01-07 00:36:04.874936"]]  (32.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:36:04 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.9ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:36:05 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420590964-8471-4521/test.jpg"} Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (29.6ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (24.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (30.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (45.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.6ms) DELETE FROM sqlite_sequence where name = 'users';  (44.9ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-07 00:36:05.514663"], ["updated_at", "2015-01-07 00:36:05.514663"]]  (29.4ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:36:05 -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 (2.0ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.6ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:06 -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 (3.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (28.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.0ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.3ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.5ms) DELETE FROM sqlite_sequence where name = 'users';  (30.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (28.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-07 00:36:06.397262"], ["updated_at", "2015-01-07 00:36:06.397262"]]  (24.1ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:36:06 -0500 Processing by Proclaim::PostsController#new as HTML 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.2ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:07 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"}  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Post Title"], ["body", "

Paragraph 1

Paragraph 2

"], ["author_id", 1], ["created_at", "2015-01-07 00:36:07.069980"], ["updated_at", "2015-01-07 00:36:07.069980"]]  (34.9ms) commit transaction Redirected to http://127.0.0.1:45377/proclaim/posts/1 Completed 302 Found in 48ms (ActiveRecord: 35.6ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:07 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) 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.4ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts"  (41.6ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (39.8ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.7ms) DELETE FROM sqlite_sequence where name = 'users';  (44.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-07 00:36:07.746733"], ["updated_at", "2015-01-07 00:36:07.746733"]]  (33.7ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-07 00:36:07.789909"], ["updated_at", "2015-01-07 00:36:07.789909"]]  (35.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title35"], ["body", "body34"], ["author_id", 2], ["created_at", "2015-01-07 00:36:07.833899"], ["updated_at", "2015-01-07 00:36:07.833899"]]  (35.4ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:07.881263"], ["updated_at", "2015-01-07 00:36:07.881263"]]  (35.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-07 00:36:07.922815"], ["id", 1]]  (36.5ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:36:07 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.5ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.7ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.6ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:36:08 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:08 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title35", "body"=>"

test

\r\n\t\t


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

test

\r\n\t\t


"], ["updated_at", "2015-01-07 00:36:08.501893"], ["id", 1]] SQL (0.4ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (37.7ms) commit transaction Redirected to http://127.0.0.1:45377/proclaim/posts/1 Completed 302 Found in 51ms (ActiveRecord: 39.1ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:08 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (9.6ms) Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 0.8ms)  (53.6ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (25.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.0ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.7ms) DELETE FROM sqlite_sequence where name = 'users';  (39.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.5ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email10@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email10@example.com"], ["created_at", "2015-01-07 00:36:09.132161"], ["updated_at", "2015-01-07 00:36:09.132161"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2b907cbb-69c6-42ff-9f79-588767d024a3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2b907cbb-69c6-42ff-9f79-588767d024a3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2b907cbb-69c6-42ff-9f79-588767d024a3] 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] [2b907cbb-69c6-42ff-9f79-588767d024a3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.5ms [ActiveJob] [ActionMailer::DeliveryJob] [2b907cbb-69c6-42ff-9f79-588767d024a3] Sent mail to email10@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [2b907cbb-69c6-42ff-9f79-588767d024a3] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email10@example.com Message-ID: <54ac7f7928449_211740533051348@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7927b3b_2117405330512d9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7927b3b_2117405330512d9 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_54ac7f7927b3b_2117405330512d9 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_54ac7f7927b3b_2117405330512d9-- [ActiveJob] [ActionMailer::DeliveryJob] [2b907cbb-69c6-42ff-9f79-588767d024a3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.36ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-07 00:36:09.169464"], ["updated_at", "2015-01-07 00:36:09.169464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title36"], ["body", "body35"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.171036"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.172449"], ["updated_at", "2015-01-07 00:36:09.172449"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aa2606c4-c2fa-4929-92ec-18b5558d1a19) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] 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] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 29.8ms [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] Sent mail to email10@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email10@example.com Message-ID: <54ac7f7932f06_211740533051569@Pandora.mail> Subject: New Post: title36 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7932672_211740533051441"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7932672_211740533051441 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title36 ******* body35 Written on January 07, 2015 at 12:36 AM UTC by first_name56 last_name56 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_54ac7f7932672_211740533051441 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title36

body35
----==_mimepart_54ac7f7932672_211740533051441-- [ActiveJob] [ActionMailer::DeliveryJob] [aa2606c4-c2fa-4929-92ec-18b5558d1a19] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.58ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (4.1ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 32.9ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email11@example.com"], ["created_at", "2015-01-07 00:36:09.255478"], ["updated_at", "2015-01-07 00:36:09.255478"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5f34f847-e291-41f7-bb03-844fd23ca4ba) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5f34f847-e291-41f7-bb03-844fd23ca4ba] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5f34f847-e291-41f7-bb03-844fd23ca4ba] 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] [5f34f847-e291-41f7-bb03-844fd23ca4ba] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.0ms [ActiveJob] [ActionMailer::DeliveryJob] [5f34f847-e291-41f7-bb03-844fd23ca4ba] Sent mail to email11@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [5f34f847-e291-41f7-bb03-844fd23ca4ba] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email11@example.com Message-ID: <54ac7f7946714_211740533051831@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7945dd9_211740533051722"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7945dd9_211740533051722 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_54ac7f7945dd9_211740533051722 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_54ac7f7945dd9_211740533051722-- [ActiveJob] [ActionMailer::DeliveryJob] [5f34f847-e291-41f7-bb03-844fd23ca4ba] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-07 00:36:09.293055"], ["updated_at", "2015-01-07 00:36:09.293055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", "body36"], ["author_id", 1], ["created_at", "2015-01-07 00:36:09.295603"], ["updated_at", "2015-01-07 00:36:09.295603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:09.299617"], ["updated_at", "2015-01-07 00:36:09.299617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-07 00:36:09.302281"], ["state", "published"], ["updated_at", "2015-01-07 00:36:09.303920"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0bd14b33-21f4-4415-9874-97036127513f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0bd14b33-21f4-4415-9874-97036127513f] 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] [0bd14b33-21f4-4415-9874-97036127513f] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0bd14b33-21f4-4415-9874-97036127513f] 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] [0bd14b33-21f4-4415-9874-97036127513f] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 26.0ms [ActiveJob] [ActionMailer::DeliveryJob] [0bd14b33-21f4-4415-9874-97036127513f] Sent mail to email11@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0bd14b33-21f4-4415-9874-97036127513f] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email11@example.com Message-ID: <54ac7f7952057_211740533052099@Pandora.mail> Subject: New Post: title37 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7951772_21174053305196a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7951772_21174053305196a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title37 ******* Written on January 07, 2015 at 12:36 AM UTC by first_name57 last_name57 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_54ac7f7951772_21174053305196a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title37

----==_mimepart_54ac7f7951772_21174053305196a-- [ActiveJob] [ActionMailer::DeliveryJob] [0bd14b33-21f4-4415-9874-97036127513f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.66ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 30.4ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-07 00:36:09.373186"], ["updated_at", "2015-01-07 00:36:09.373186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title38"], ["body", "body37"], ["author_id", 1], ["created_at", "2015-01-07 00:36:09.375739"], ["updated_at", "2015-01-07 00:36:09.375739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email12@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.378790"], ["updated_at", "2015-01-07 00:36:09.378790"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0949f9a8-8ae8-42eb-bd32-e8c154671d4f) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] 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] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.5ms [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Sent mail to email12@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email12@example.com Message-ID: <54ac7f7964a70_2117405330523d9@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79641ad_2117405330522b5"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79641ad_2117405330522b5 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_54ac7f79641ad_2117405330522b5 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_54ac7f79641ad_2117405330522b5-- [ActiveJob] [ActionMailer::DeliveryJob] [0949f9a8-8ae8-42eb-bd32-e8c154671d4f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.17ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-07 00:36:09.416862"], ["updated_at", "2015-01-07 00:36:09.416862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title39"], ["body", "body38"], ["author_id", 2], ["created_at", "2015-01-07 00:36:09.419156"], ["updated_at", "2015-01-07 00:36:09.419156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author9"], ["body", "body8"], ["post_id", 2], ["created_at", "2015-01-07 00:36:09.421142"], ["updated_at", "2015-01-07 00:36:09.421142"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.5ms) Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 28.3ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email13@example.com"], ["created_at", "2015-01-07 00:36:09.463542"], ["updated_at", "2015-01-07 00:36:09.463542"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8a0e1814-bba7-4489-87d0-4b77c3115cf6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] 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] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.8ms [ActiveJob] [ActionMailer::DeliveryJob] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] Sent mail to email13@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email13@example.com Message-ID: <54ac7f79796b2_21174053305261a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7978e3c_211740533052560"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7978e3c_211740533052560 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_54ac7f7978e3c_211740533052560 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_54ac7f7978e3c_211740533052560-- [ActiveJob] [ActionMailer::DeliveryJob] [8a0e1814-bba7-4489-87d0-4b77c3115cf6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.47ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.9ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.6ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-07 00:36:09.536147"], ["updated_at", "2015-01-07 00:36:09.536147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title40"], ["body", "body39"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.537865"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.539189"], ["updated_at", "2015-01-07 00:36:09.539189"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email14@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.543062"], ["updated_at", "2015-01-07 00:36:09.543062"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e646954c-2668-4532-a816-8249ee604609) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] 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] [e646954c-2668-4532-a816-8249ee604609] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.3ms [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] Sent mail to email14@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email14@example.com Message-ID: <54ac7f798cae7_21174053305293c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f798c1d2_211740533052838"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f798c1d2_211740533052838 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_54ac7f798c1d2_211740533052838 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_54ac7f798c1d2_211740533052838-- [ActiveJob] [ActionMailer::DeliveryJob] [e646954c-2668-4532-a816-8249ee604609] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.13ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author10"], ["body", "body9"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.580552"], ["updated_at", "2015-01-07 00:36:09.580552"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 64eecc2e-3572-4c16-907b-542f53457052) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] 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] [64eecc2e-3572-4c16-907b-542f53457052] 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] [64eecc2e-3572-4c16-907b-542f53457052] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 24.3ms [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] Sent mail to email14@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email14@example.com Message-ID: <54ac7f79951cf_2117405330531d6@Pandora.mail> Subject: New Comment On "title40" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7994971_211740533053044"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7994971_211740533053044 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body9 Written on January 07, 2015 at 12:36 AM UTC by author10 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_54ac7f7994971_211740533053044 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body9
----==_mimepart_54ac7f7994971_211740533053044-- [ActiveJob] [ActionMailer::DeliveryJob] [64eecc2e-3572-4c16-907b-542f53457052] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.98ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-07 00:36:09.617313"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-07 00:36:09.622048"], ["updated_at", "2015-01-07 00:36:09.622048"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 210a297f-be84-4587-b3d6-cfecd8b08fc1) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [210a297f-be84-4587-b3d6-cfecd8b08fc1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [210a297f-be84-4587-b3d6-cfecd8b08fc1] 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] [210a297f-be84-4587-b3d6-cfecd8b08fc1] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.7ms [ActiveJob] [ActionMailer::DeliveryJob] [210a297f-be84-4587-b3d6-cfecd8b08fc1] Sent mail to email15@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [210a297f-be84-4587-b3d6-cfecd8b08fc1] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email15@example.com Message-ID: <54ac7f799fe1b_211740533053337@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f799f4a8_21174053305325a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f799f4a8_21174053305325a 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_54ac7f799f4a8_21174053305325a 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_54ac7f799f4a8_21174053305325a-- [ActiveJob] [ActionMailer::DeliveryJob] [210a297f-be84-4587-b3d6-cfecd8b08fc1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.78ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-07 00:36:09.659382"], ["updated_at", "2015-01-07 00:36:09.659382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title41"], ["body", "body40"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.660953"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.662260"], ["updated_at", "2015-01-07 00:36:09.662260"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] 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] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] 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] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.4ms [ActiveJob] [ActionMailer::DeliveryJob] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] Sent mail to email15@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email15@example.com Message-ID: <54ac7f79a8a9d_2117405330535e4@Pandora.mail> Subject: New Post: title41 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79a81f0_211740533053445"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79a81f0_211740533053445 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title41 ******* body40 Written on January 07, 2015 at 12:36 AM UTC by first_name61 last_name61 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_54ac7f79a81f0_211740533053445 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title41

body40
----==_mimepart_54ac7f79a81f0_211740533053445-- [ActiveJob] [ActionMailer::DeliveryJob] [2c1d6dbe-517a-4ffb-86c0-72bfe1c08a20] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.07ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email16@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email16@example.com"], ["created_at", "2015-01-07 00:36:09.697151"], ["updated_at", "2015-01-07 00:36:09.697151"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 28a37ee5-089a-4b2d-ac9b-b8a273742145) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [28a37ee5-089a-4b2d-ac9b-b8a273742145] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [28a37ee5-089a-4b2d-ac9b-b8a273742145] 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] [28a37ee5-089a-4b2d-ac9b-b8a273742145] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.4ms [ActiveJob] [ActionMailer::DeliveryJob] [28a37ee5-089a-4b2d-ac9b-b8a273742145] Sent mail to email16@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [28a37ee5-089a-4b2d-ac9b-b8a273742145] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email16@example.com Message-ID: <54ac7f79b2213_211740533053796@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79b195f_2117405330536b6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79b195f_2117405330536b6 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_54ac7f79b195f_2117405330536b6 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_54ac7f79b195f_2117405330536b6-- [ActiveJob] [ActionMailer::DeliveryJob] [28a37ee5-089a-4b2d-ac9b-b8a273742145] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.53ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-07 00:36:09.734186"], ["updated_at", "2015-01-07 00:36:09.734186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title42"], ["body", "body41"], ["author_id", 1], ["created_at", "2015-01-07 00:36:09.736711"], ["updated_at", "2015-01-07 00:36:09.736711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-07 00:36:09.738359"], ["state", "published"], ["updated_at", "2015-01-07 00:36:09.739565"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8892ed28-911a-41e1-89c0-444b0c8fb8f5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] 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] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.9ms [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] Sent mail to email16@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email16@example.com Message-ID: <54ac7f79bbb07_21174053305399a@Pandora.mail> Subject: New Post: title42 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79bb243_2117405330538c0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79bb243_2117405330538c0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title42 ******* body41 Written on January 07, 2015 at 12:36 AM UTC by first_name62 last_name62 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_54ac7f79bb243_2117405330538c0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title42

body41
----==_mimepart_54ac7f79bb243_2117405330538c0-- [ActiveJob] [ActionMailer::DeliveryJob] [8892ed28-911a-41e1-89c0-444b0c8fb8f5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.76ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-07 00:36:09.774777"], ["updated_at", "2015-01-07 00:36:09.774777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title43"], ["body", "body42"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.776408"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.777743"], ["updated_at", "2015-01-07 00:36:09.777743"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email17@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.781843"], ["updated_at", "2015-01-07 00:36:09.781843"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] 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] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.8ms [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Sent mail to email17@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email17@example.com Message-ID: <54ac7f79c7297_2117405330541d6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79c69af_21174053305408c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79c69af_21174053305408c 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_54ac7f79c69af_21174053305408c 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_54ac7f79c69af_21174053305408c-- [ActiveJob] [ActionMailer::DeliveryJob] [90fc54a5-33ec-4f4a-bf4b-f7b34498e4e3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.69ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author11"], ["body", "body10"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.820340"], ["updated_at", "2015-01-07 00:36:09.820340"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8d4e5213-8367-49dd-9bea-c96750f44ac6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] 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] [8d4e5213-8367-49dd-9bea-c96750f44ac6] 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] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 24.5ms [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Sent mail to email17@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email17@example.com Message-ID: <54ac7f79cfbbd_211740533054340@Pandora.mail> Subject: New Comment On "title43" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79cf2d7_21174053305426d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79cf2d7_21174053305426d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body10 Written on January 07, 2015 at 12:36 AM UTC by author11 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_54ac7f79cf2d7_21174053305426d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body10
----==_mimepart_54ac7f79cf2d7_21174053305426d-- [ActiveJob] [ActionMailer::DeliveryJob] [8d4e5213-8367-49dd-9bea-c96750f44ac6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.53ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-07 00:36:09.860232"], ["updated_at", "2015-01-07 00:36:09.860232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title44"], ["body", "body43"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.861875"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.863232"], ["updated_at", "2015-01-07 00:36:09.863232"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email18@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:09.867439"], ["updated_at", "2015-01-07 00:36:09.867439"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cc2ad5c1-0bee-4d70-9b32-9ef0594925dc) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] 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] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.5ms [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Sent mail to email18@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email18@example.com Message-ID: <54ac7f79dd660_211740533054560@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79dcdff_2117405330544e5"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79dcdff_2117405330544e5 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_54ac7f79dcdff_2117405330544e5 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_54ac7f79dcdff_2117405330544e5-- [ActiveJob] [ActionMailer::DeliveryJob] [cc2ad5c1-0bee-4d70-9b32-9ef0594925dc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.1ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email19@example.com"], ["created_at", "2015-01-07 00:36:09.912684"], ["updated_at", "2015-01-07 00:36:09.912684"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 541eeb98-070f-42e1-b020-ed8e8a3237e9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [541eeb98-070f-42e1-b020-ed8e8a3237e9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [541eeb98-070f-42e1-b020-ed8e8a3237e9] 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] [541eeb98-070f-42e1-b020-ed8e8a3237e9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 34.5ms [ActiveJob] [ActionMailer::DeliveryJob] [541eeb98-070f-42e1-b020-ed8e8a3237e9] Sent mail to email19@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [541eeb98-070f-42e1-b020-ed8e8a3237e9] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email19@example.com Message-ID: <54ac7f79e88b8_211740533054728@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79e7fb3_2117405330546f4"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79e7fb3_2117405330546f4 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_54ac7f79e7fb3_2117405330546f4 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_54ac7f79e7fb3_2117405330546f4-- [ActiveJob] [ActionMailer::DeliveryJob] [541eeb98-070f-42e1-b020-ed8e8a3237e9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.33ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-07 00:36:09.956659"], ["updated_at", "2015-01-07 00:36:09.956659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title45"], ["body", "body44"], ["author_id", 1], ["published_at", "2015-01-07 00:36:09.958201"], ["state", "published"], ["created_at", "2015-01-07 00:36:09.959492"], ["updated_at", "2015-01-07 00:36:09.959492"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 273d3ef2-91fa-46b5-833d-1f0920a0cab2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] 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] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] 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] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 22.2ms [ActiveJob] [ActionMailer::DeliveryJob] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] Sent mail to email19@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] Date: Tue, 06 Jan 2015 19:36:09 -0500 From: from@example.com To: email19@example.com Message-ID: <54ac7f79f127b_2117405330549b8@Pandora.mail> Subject: New Post: title45 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f79f09f3_21174053305482a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f79f09f3_21174053305482a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title45 ******* body44 Written on January 07, 2015 at 12:36 AM UTC by first_name65 last_name65 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_54ac7f79f09f3_21174053305482a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title45

body44
----==_mimepart_54ac7f79f09f3_21174053305482a-- [ActiveJob] [ActionMailer::DeliveryJob] [273d3ef2-91fa-46b5-833d-1f0920a0cab2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.01ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-07 00:36:09.993672"], ["updated_at", "2015-01-07 00:36:09.993672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-07 00:36:09.996734"], ["updated_at", "2015-01-07 00:36:09.996734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title46"], ["body", "body45"], ["author_id", 2], ["created_at", "2015-01-07 00:36:09.998749"], ["updated_at", "2015-01-07 00:36:09.998749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author12"], ["body", "body11"], ["post_id", 1], ["created_at", "2015-01-07 00:36:10.000916"], ["updated_at", "2015-01-07 00:36:10.000916"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-07 00:36:10.007126"], ["updated_at", "2015-01-07 00:36:10.007126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-07 00:36:10.009835"], ["updated_at", "2015-01-07 00:36:10.009835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title47"], ["body", "body46"], ["author_id", 2], ["created_at", "2015-01-07 00:36:10.011821"], ["updated_at", "2015-01-07 00:36:10.011821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author13"], ["body", "body12"], ["post_id", 1], ["created_at", "2015-01-07 00:36:10.014094"], ["updated_at", "2015-01-07 00:36:10.014094"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-07 00:36:10.020361"], ["updated_at", "2015-01-07 00:36:10.020361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-07 00:36:10.023560"], ["updated_at", "2015-01-07 00:36:10.023560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title48"], ["body", "body47"], ["author_id", 2], ["created_at", "2015-01-07 00:36:10.025875"], ["updated_at", "2015-01-07 00:36:10.025875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author14"], ["body", "body13"], ["post_id", 1], ["created_at", "2015-01-07 00:36:10.028289"], ["updated_at", "2015-01-07 00:36:10.028289"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-07 00:36:10.034347"], ["updated_at", "2015-01-07 00:36:10.034347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title49"], ["body", "body48"], ["author_id", 3], ["created_at", "2015-01-07 00:36:10.036444"], ["updated_at", "2015-01-07 00:36:10.036444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author15"], ["body", "body14"], ["post_id", 2], ["created_at", "2015-01-07 00:36:10.038474"], ["updated_at", "2015-01-07 00:36:10.038474"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-07 00:36:10.044811"], ["updated_at", "2015-01-07 00:36:10.044811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-07 00:36:10.047573"], ["updated_at", "2015-01-07 00:36:10.047573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title50"], ["body", "body49"], ["author_id", 2], ["published_at", "2015-01-07 00:36:10.049004"], ["state", "published"], ["created_at", "2015-01-07 00:36:10.050479"], ["updated_at", "2015-01-07 00:36:10.050479"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-07 00:36:10.054788"], ["updated_at", "2015-01-07 00:36:10.054788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title51"], ["body", "body50"], ["author_id", 3], ["created_at", "2015-01-07 00:36:10.056828"], ["updated_at", "2015-01-07 00:36:10.056828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-07 00:36:10.060121"], ["updated_at", "2015-01-07 00:36:10.060121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-07 00:36:10.062922"], ["updated_at", "2015-01-07 00:36:10.062922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title52"], ["body", "body51"], ["author_id", 2], ["created_at", "2015-01-07 00:36:10.064870"], ["updated_at", "2015-01-07 00:36:10.064870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-07 00:36:10.067773"], ["updated_at", "2015-01-07 00:36:10.067773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title53"], ["body", "body52"], ["author_id", 3], ["published_at", "2015-01-07 00:36:10.068897"], ["state", "published"], ["created_at", "2015-01-07 00:36:10.070127"], ["updated_at", "2015-01-07 00:36:10.070127"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-07 00:36:10.073661"], ["updated_at", "2015-01-07 00:36:10.073661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title54"], ["body", "body53"], ["author_id", 4], ["created_at", "2015-01-07 00:36:10.075620"], ["updated_at", "2015-01-07 00:36:10.075620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-07 00:36:10.078318"], ["updated_at", "2015-01-07 00:36:10.078318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title55"], ["body", "body54"], ["author_id", 5], ["published_at", "2015-01-07 00:36:10.079690"], ["state", "published"], ["created_at", "2015-01-07 00:36:10.081130"], ["updated_at", "2015-01-07 00:36:10.081130"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-07 00:36:10.084910"], ["updated_at", "2015-01-07 00:36:10.084910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email26@example.com"], ["created_at", "2015-01-07 00:36:10.087411"], ["updated_at", "2015-01-07 00:36:10.087411"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 976e8273-be5b-4fde-9b27-8d0664cfbd60) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [976e8273-be5b-4fde-9b27-8d0664cfbd60] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [976e8273-be5b-4fde-9b27-8d0664cfbd60] 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] [976e8273-be5b-4fde-9b27-8d0664cfbd60] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.9ms [ActiveJob] [ActionMailer::DeliveryJob] [976e8273-be5b-4fde-9b27-8d0664cfbd60] Sent mail to email26@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [976e8273-be5b-4fde-9b27-8d0664cfbd60] Date: Tue, 06 Jan 2015 19:36:10 -0500 From: from@example.com To: email26@example.com Message-ID: <54ac7f7a1d227_21174053305511d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7a1c92e_211740533055051"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7a1c92e_211740533055051 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_54ac7f7a1c92e_211740533055051 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_54ac7f7a1c92e_211740533055051-- [ActiveJob] [ActionMailer::DeliveryJob] [976e8273-be5b-4fde-9b27-8d0664cfbd60] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.83ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-07 00:36:10.124036"], ["updated_at", "2015-01-07 00:36:10.124036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email27@example.com"], ["created_at", "2015-01-07 00:36:10.127147"], ["updated_at", "2015-01-07 00:36:10.127147"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b55089aa-7060-494d-bb40-72302b95f813) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b55089aa-7060-494d-bb40-72302b95f813] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b55089aa-7060-494d-bb40-72302b95f813] 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] [b55089aa-7060-494d-bb40-72302b95f813] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.2ms [ActiveJob] [ActionMailer::DeliveryJob] [b55089aa-7060-494d-bb40-72302b95f813] Sent mail to email27@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [b55089aa-7060-494d-bb40-72302b95f813] Date: Tue, 06 Jan 2015 19:36:10 -0500 From: from@example.com To: email27@example.com Message-ID: <54ac7f7a26dc5_211740533055399@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7a26453_211740533055230"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7a26453_211740533055230 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_54ac7f7a26453_211740533055230 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_54ac7f7a26453_211740533055230-- [ActiveJob] [ActionMailer::DeliveryJob] [b55089aa-7060-494d-bb40-72302b95f813] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.26ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-07 00:36:10.164007"], ["updated_at", "2015-01-07 00:36:10.164007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email28@example.com"], ["created_at", "2015-01-07 00:36:10.166750"], ["updated_at", "2015-01-07 00:36:10.166750"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 28f11a73-fdc1-497f-acbb-270ecec407a5) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [28f11a73-fdc1-497f-acbb-270ecec407a5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [28f11a73-fdc1-497f-acbb-270ecec407a5] 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] [28f11a73-fdc1-497f-acbb-270ecec407a5] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms [ActiveJob] [ActionMailer::DeliveryJob] [28f11a73-fdc1-497f-acbb-270ecec407a5] Sent mail to email28@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [28f11a73-fdc1-497f-acbb-270ecec407a5] Date: Tue, 06 Jan 2015 19:36:10 -0500 From: from@example.com To: email28@example.com Message-ID: <54ac7f7a30b7e_2117405330555a6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7a30301_21174053305541d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7a30301_21174053305541d 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_54ac7f7a30301_21174053305541d 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_54ac7f7a30301_21174053305541d-- [ActiveJob] [ActionMailer::DeliveryJob] [28f11a73-fdc1-497f-acbb-270ecec407a5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.85ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-07 00:36:10.203963"], ["updated_at", "2015-01-07 00:36:10.203963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email29@example.com"], ["created_at", "2015-01-07 00:36:10.206717"], ["updated_at", "2015-01-07 00:36:10.206717"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 24094315-a04f-4f22-8bcd-5f1d4e22c69a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] 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] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.7ms [ActiveJob] [ActionMailer::DeliveryJob] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] Sent mail to email29@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] Date: Tue, 06 Jan 2015 19:36:10 -0500 From: from@example.com To: email29@example.com Message-ID: <54ac7f7a3a275_2117405330557c7@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7a39999_211740533055677"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7a39999_211740533055677 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_54ac7f7a39999_211740533055677 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_54ac7f7a39999_211740533055677-- [ActiveJob] [ActionMailer::DeliveryJob] [24094315-a04f-4f22-8bcd-5f1d4e22c69a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.49ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email30@example.com"], ["created_at", "2015-01-07 00:36:10.242679"], ["updated_at", "2015-01-07 00:36:10.242679"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1a183cc0-b934-46d0-9b22-72cdd3a06240) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [1a183cc0-b934-46d0-9b22-72cdd3a06240] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [1a183cc0-b934-46d0-9b22-72cdd3a06240] 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] [1a183cc0-b934-46d0-9b22-72cdd3a06240] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.3ms [ActiveJob] [ActionMailer::DeliveryJob] [1a183cc0-b934-46d0-9b22-72cdd3a06240] Sent mail to email30@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1a183cc0-b934-46d0-9b22-72cdd3a06240] Date: Tue, 06 Jan 2015 19:36:10 -0500 From: from@example.com To: email30@example.com Message-ID: <54ac7f7a42aab_211740533055915@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f7a421b5_21174053305586f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f7a421b5_21174053305586f 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_54ac7f7a421b5_21174053305586f 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_54ac7f7a421b5_21174053305586f-- [ActiveJob] [ActionMailer::DeliveryJob] [1a183cc0-b934-46d0-9b22-72cdd3a06240] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.19ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.1ms) rollback transaction --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-07 00:36:10.280997"], ["updated_at", "2015-01-07 00:36:10.280997"]]  (36.6ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title56"], ["body", "body55"], ["author_id", 1], ["published_at", "2015-01-07 00:36:10.320519"], ["state", "published"], ["created_at", "2015-01-07 00:36:10.324988"], ["updated_at", "2015-01-07 00:36:10.324988"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.7ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author18"], ["body", "body17"], ["post_id", 1], ["created_at", "2015-01-07 00:36:10.368074"], ["updated_at", "2015-01-07 00:36:10.368074"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (30.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:10 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) 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.1ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36: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"=>"wrong answer", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 1.1ms | ActiveRecord: 0.3ms)  (43.8ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.3ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.4ms) DELETE FROM sqlite_sequence where name = 'users';  (36.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-07 00:36:11.645361"], ["updated_at", "2015-01-07 00:36:11.645361"]]  (33.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-07 00:36:11.688549"], ["updated_at", "2015-01-07 00:36:11.688549"]]  (37.6ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title57"], ["body", "body56"], ["author_id", 2], ["published_at", "2015-01-07 00:36:11.728878"], ["state", "published"], ["created_at", "2015-01-07 00:36:11.733665"], ["updated_at", "2015-01-07 00:36:11.733665"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (46.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body18"], ["post_id", 1], ["created_at", "2015-01-07 00:36:11.786110"], ["updated_at", "2015-01-07 00:36:11.786110"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (45.5ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author20"], ["body", "body19"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:36:11.839587"], ["updated_at", "2015-01-07 00:36:11.839587"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (40.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:11 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.9ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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 (7.4ms) 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 (24.0ms) Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.8ms) Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-06 19:36:12 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>"1"}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"2"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:36:12.543892"], ["id", 2]]  (63.5ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (15.2ms) Completed 200 OK in 107ms (Views: 0.7ms | ActiveRecord: 65.7ms)  (33.9ms) DELETE FROM "proclaim_posts";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (26.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (48.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.7ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.1ms) DELETE FROM sqlite_sequence where name = 'users';  (42.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.6ms) DELETE FROM "proclaim_images";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-07 00:36:13.296125"], ["updated_at", "2015-01-07 00:36:13.296125"]]  (39.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title58"], ["body", "body57"], ["author_id", 1], ["published_at", "2015-01-07 00:36:13.337882"], ["state", "published"], ["created_at", "2015-01-07 00:36:13.342438"], ["updated_at", "2015-01-07 00:36:13.342438"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (43.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:13 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.4ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36:13 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"wrong answer", "solution"=>"3"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (38.9ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (18.3ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (17.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (18.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.9ms) DELETE FROM sqlite_sequence where name = 'users';  (19.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-07 00:36:14.202263"], ["updated_at", "2015-01-07 00:36:14.202263"]]  (28.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-07 00:36:14.237765"], ["updated_at", "2015-01-07 00:36:14.237765"]]  (32.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title59"], ["body", "body58"], ["author_id", 2], ["published_at", "2015-01-07 00:36:14.273503"], ["state", "published"], ["created_at", "2015-01-07 00:36:14.278038"], ["updated_at", "2015-01-07 00:36:14.278038"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.8ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-07 00:36:14.322555"], ["updated_at", "2015-01-07 00:36:14.322555"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.1ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author22"], ["body", "body21"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:36:14.378643"], ["updated_at", "2015-01-07 00:36:14.378643"]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (29.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:14 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.7ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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 (7.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (22.4ms) Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-06 19:36:15 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (1.1ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.5ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (38.4ms) commit transaction Completed 200 OK in 53ms (Views: 0.3ms | ActiveRecord: 40.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (59.6ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (63.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (54.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.8ms) DELETE FROM sqlite_sequence where name = 'users';  (61.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (43.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-07 00:36:16.498970"], ["updated_at", "2015-01-07 00:36:16.498970"]]  (42.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-07 00:36:16.545749"], ["updated_at", "2015-01-07 00:36:16.545749"]]  (49.7ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title60"], ["body", "body59"], ["author_id", 2], ["published_at", "2015-01-07 00:36:16.597909"], ["state", "published"], ["created_at", "2015-01-07 00:36:16.602221"], ["updated_at", "2015-01-07 00:36:16.602221"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (48.0ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author23"], ["body", "body22"], ["post_id", 1], ["created_at", "2015-01-07 00:36:16.659951"], ["updated_at", "2015-01-07 00:36:16.659951"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (46.5ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author24"], ["body", "body23"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:36:16.718909"], ["updated_at", "2015-01-07 00:36:16.718909"]] SQL (0.7ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.4ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (46.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:16 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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) Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (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.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 (22.3ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.7ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-06 19:36:17 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:36:17.474899"], ["id", 1]]  (65.6ms) commit transaction Proclaim::Comment Load (0.5ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) 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 (11.3ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) 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.9ms) Completed 200 OK in 108ms (Views: 1.2ms | ActiveRecord: 67.4ms)  (44.3ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (38.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (39.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (32.6ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.6ms) DELETE FROM sqlite_sequence where name = 'users';  (39.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-07 00:36:18.240076"], ["updated_at", "2015-01-07 00:36:18.240076"]]  (43.0ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title61"], ["body", "body60"], ["author_id", 1], ["published_at", "2015-01-07 00:36:18.285078"], ["state", "published"], ["created_at", "2015-01-07 00:36:18.286693"], ["updated_at", "2015-01-07 00:36:18.286693"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.3ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author25"], ["body", "body24"], ["post_id", 1], ["created_at", "2015-01-07 00:36:18.330802"], ["updated_at", "2015-01-07 00:36:18.330802"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (30.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-07 00:36:18.371816"], ["updated_at", "2015-01-07 00:36:18.371816"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (34.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:18 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.6ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (19.0ms) Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 0.7ms)  (44.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (48.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (41.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (62.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (52.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (50.2ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (48.1ms) DELETE FROM sqlite_sequence where name = 'users';  (47.9ms) DELETE FROM "proclaim_subscriptions";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.6ms) DELETE FROM "proclaim_images";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-07 00:36:19.265764"], ["updated_at", "2015-01-07 00:36:19.265764"]]  (51.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-07 00:36:19.320685"], ["updated_at", "2015-01-07 00:36:19.320685"]]  (49.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title62"], ["body", "body61"], ["author_id", 2], ["published_at", "2015-01-07 00:36:19.372357"], ["state", "published"], ["created_at", "2015-01-07 00:36:19.373987"], ["updated_at", "2015-01-07 00:36:19.373987"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (45.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author27"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-07 00:36:19.423445"], ["updated_at", "2015-01-07 00:36:19.423445"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (45.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:19 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.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/posts/show.html.erb within layouts/application (14.0ms) Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-06 19:36:19 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.7ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.4ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (38.9ms) commit transaction Completed 200 OK in 47ms (Views: 0.3ms | ActiveRecord: 40.4ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_comments"  (38.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (29.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (28.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (26.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.1ms) DELETE FROM sqlite_sequence where name = 'users';  (110.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (51.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-07 00:36:20.844769"], ["updated_at", "2015-01-07 00:36:20.844769"]]  (43.9ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title63"], ["body", "body62"], ["author_id", 1], ["published_at", "2015-01-07 00:36:20.891343"], ["state", "published"], ["created_at", "2015-01-07 00:36:20.896055"], ["updated_at", "2015-01-07 00:36:20.896055"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (42.1ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author28"], ["body", "body27"], ["post_id", 1], ["created_at", "2015-01-07 00:36:20.949535"], ["updated_at", "2015-01-07 00:36:20.949535"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (43.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:21 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.5ms) 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.2ms) Completed 200 OK in 19ms (Views: 15.7ms | ActiveRecord: 0.7ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36:21 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) 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-07 00:36:21.864842"], ["updated_at", "2015-01-07 00:36:21.864842"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (53.2ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.2ms) Completed 200 OK in 85ms (Views: 0.5ms | ActiveRecord: 55.6ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36:22 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 2", "body"=>"Reply Body 2", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-07 00:36:22.647297"], ["updated_at", "2015-01-07 00:36:22.647297"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (33.2ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 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 (7.1ms) Completed 200 OK in 75ms (Views: 0.5ms | ActiveRecord: 36.5ms)  (21.7ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (19.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (28.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (18.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.4ms) DELETE FROM sqlite_sequence where name = 'users';  (37.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-07 00:36:23.147680"], ["updated_at", "2015-01-07 00:36:23.147680"]]  (31.8ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title64"], ["body", "body63"], ["author_id", 1], ["published_at", "2015-01-07 00:36:23.182688"], ["state", "published"], ["created_at", "2015-01-07 00:36:23.187189"], ["updated_at", "2015-01-07 00:36:23.187189"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (31.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:23 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] 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 (6.6ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36:23 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (48.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (44.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.4ms) DELETE FROM sqlite_sequence where name = 'users';  (40.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-07 00:36:24.155046"], ["updated_at", "2015-01-07 00:36:24.155046"]]  (48.8ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-07 00:36:24.212064"], ["updated_at", "2015-01-07 00:36:24.212064"]]  (39.2ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title65"], ["body", "body64"], ["author_id", 2], ["published_at", "2015-01-07 00:36:24.256191"], ["state", "published"], ["created_at", "2015-01-07 00:36:24.260584"], ["updated_at", "2015-01-07 00:36:24.260584"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.6ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author29"], ["body", "body28"], ["post_id", 1], ["created_at", "2015-01-07 00:36:24.307167"], ["updated_at", "2015-01-07 00:36:24.307167"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:24 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.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 (14.8ms) Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 0.6ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-06 19:36:24 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) begin transaction Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.8ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:36:24.916216"], ["id", 1]]  (73.7ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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 (14.9ms) Completed 200 OK in 112ms (Views: 0.7ms | ActiveRecord: 75.9ms)  (44.1ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'users';  (41.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-07 00:36:25.534560"], ["updated_at", "2015-01-07 00:36:25.534560"]]  (34.4ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-07 00:36:25.577950"], ["updated_at", "2015-01-07 00:36:25.577950"]]  (47.1ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title66"], ["body", "body65"], ["author_id", 2], ["published_at", "2015-01-07 00:36:25.630198"], ["state", "published"], ["created_at", "2015-01-07 00:36:25.634780"], ["updated_at", "2015-01-07 00:36:25.634780"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.5ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author30"], ["body", "body29"], ["post_id", 1], ["created_at", "2015-01-07 00:36:25.684228"], ["updated_at", "2015-01-07 00:36:25.684228"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.4ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author31"], ["body", "body30"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:36:25.737163"], ["updated_at", "2015-01-07 00:36:25.737163"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (44.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:25 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) 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.4ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) 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 (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (23.9ms) Completed 200 OK in 29ms (Views: 25.1ms | ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-06 19:36:26 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction  (1.0ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1 Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.4ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (36.8ms) commit transaction Completed 200 OK in 58ms (Views: 0.3ms | ActiveRecord: 39.5ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (27.6ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (17.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (22.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (23.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (28.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.3ms) DELETE FROM sqlite_sequence where name = 'users';  (18.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (18.0ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-07 00:36:27.384153"], ["updated_at", "2015-01-07 00:36:27.384153"]]  (21.4ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title67"], ["body", "body66"], ["author_id", 1], ["published_at", "2015-01-07 00:36:27.408714"], ["state", "published"], ["created_at", "2015-01-07 00:36:27.413372"], ["updated_at", "2015-01-07 00:36:27.413372"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (17.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:27 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.5ms) Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:36:28 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:36:28.283424"], ["updated_at", "2015-01-07 00:36:28.283424"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (49.9ms) commit transaction Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.9ms) Completed 200 OK in 82ms (Views: 0.5ms | ActiveRecord: 52.0ms)  (39.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (35.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (42.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.0ms) DELETE FROM sqlite_sequence where name = 'users';  (33.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.7ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-07 00:36:28.874071"], ["updated_at", "2015-01-07 00:36:28.874071"]]  (28.3ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title68"], ["body", "body67"], ["author_id", 1], ["published_at", "2015-01-07 00:36:28.905071"], ["state", "published"], ["created_at", "2015-01-07 00:36:28.909614"], ["updated_at", "2015-01-07 00:36:28.909614"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.2ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author32"], ["body", "body31"], ["post_id", 1], ["created_at", "2015-01-07 00:36:28.950718"], ["updated_at", "2015-01-07 00:36:28.950718"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (35.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:29 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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/posts/show.html.erb within layouts/application (10.8ms) Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 0.7ms)  (35.1ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (43.9ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.8ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.3ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'users';  (49.2ms) DELETE FROM "proclaim_subscriptions";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-07 00:36:29.517393"], ["updated_at", "2015-01-07 00:36:29.517393"]]  (43.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body68"], ["author_id", 1], ["published_at", "2015-01-07 00:36:29.564721"], ["state", "published"], ["created_at", "2015-01-07 00:36:29.566252"], ["updated_at", "2015-01-07 00:36:29.566252"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (43.4ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-07 00:36:29.614994"], ["updated_at", "2015-01-07 00:36:29.614994"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (27.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:29 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.6ms) 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 (10.9ms) Completed 200 OK in 16ms (Views: 12.4ms | ActiveRecord: 0.5ms)  (33.4ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (37.5ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.6ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (43.7ms) DELETE FROM "users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.5ms) DELETE FROM sqlite_sequence where name = 'users';  (54.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (52.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.3ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-07 00:36:30.257608"], ["updated_at", "2015-01-07 00:36:30.257608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title70"], ["body", "body69"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.260273"], ["updated_at", "2015-01-07 00:36:30.260273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-07 00:36:30.264997"], ["updated_at", "2015-01-07 00:36:30.264997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-07 00:36:30.268457"], ["updated_at", "2015-01-07 00:36:30.268457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title71"], ["body", "body70"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.270970"], ["updated_at", "2015-01-07 00:36:30.270970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:30.281313"], ["updated_at", "2015-01-07 00:36:30.281313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-07 00:36:30.286570"], ["updated_at", "2015-01-07 00:36:30.286570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title72"], ["body", "body71"], ["author_id", 3], ["created_at", "2015-01-07 00:36:30.288860"], ["updated_at", "2015-01-07 00:36:30.288860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-07 00:36:30.293739"], ["updated_at", "2015-01-07 00:36:30.293739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title73"], ["body", "body72"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.296199"], ["updated_at", "2015-01-07 00:36:30.296199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}} Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-07 00:36:30.306074"], ["updated_at", "2015-01-07 00:36:30.306074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title74"], ["body", "body73"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.308534"], ["updated_at", "2015-01-07 00:36:30.308534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-07 00:36:30.312619"], ["updated_at", "2015-01-07 00:36:30.312619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-07 00:36:30.316028"], ["updated_at", "2015-01-07 00:36:30.316028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title75"], ["body", "body74"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.318073"], ["updated_at", "2015-01-07 00:36:30.318073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-07 00:36:30.327842"], ["updated_at", "2015-01-07 00:36:30.327842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title76"], ["body", "body75"], ["author_id", 3], ["created_at", "2015-01-07 00:36:30.330137"], ["updated_at", "2015-01-07 00:36:30.330137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-07 00:36:30.335000"], ["updated_at", "2015-01-07 00:36:30.335000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-07 00:36:30.338712"], ["updated_at", "2015-01-07 00:36:30.338712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title77"], ["body", "body76"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.341084"], ["updated_at", "2015-01-07 00:36:30.341084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420590990-8471-3801/test.jpg"} Unpermitted parameter: format Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-07 00:36:30.351229"], ["updated_at", "2015-01-07 00:36:30.351229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title78"], ["body", "body77"], ["author_id", 3], ["created_at", "2015-01-07 00:36:30.353567"], ["updated_at", "2015-01-07 00:36:30.353567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-07 00:36:30.357690"], ["updated_at", "2015-01-07 00:36:30.357690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-07 00:36:30.361074"], ["updated_at", "2015-01-07 00:36:30.361074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title79"], ["body", "body78"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.363584"], ["updated_at", "2015-01-07 00:36:30.363584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:30.368170"], ["updated_at", "2015-01-07 00:36:30.368170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-07 00:36:30.377923"], ["updated_at", "2015-01-07 00:36:30.377923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title80"], ["body", "body79"], ["author_id", 3], ["created_at", "2015-01-07 00:36:30.380190"], ["updated_at", "2015-01-07 00:36:30.380190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-07 00:36:30.385144"], ["updated_at", "2015-01-07 00:36:30.385144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title81"], ["body", "body80"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.387778"], ["updated_at", "2015-01-07 00:36:30.387778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:30.396668"], ["updated_at", "2015-01-07 00:36:30.396668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-07 00:36:30.407139"], ["updated_at", "2015-01-07 00:36:30.407139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title82"], ["body", "body81"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.409523"], ["updated_at", "2015-01-07 00:36:30.409523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-07 00:36:30.414457"], ["updated_at", "2015-01-07 00:36:30.414457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title83"], ["body", "body82"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.417125"], ["updated_at", "2015-01-07 00:36:30.417125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420590990-8471-0730/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-07 00:36:30.435605"], ["updated_at", "2015-01-07 00:36:30.435605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title84"], ["body", "body83"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.438001"], ["updated_at", "2015-01-07 00:36:30.438001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:36:30 -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.6ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-07 00:36:30.470550"], ["updated_at", "2015-01-07 00:36:30.470550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:36:30 -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.3ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-07 00:36:30.489469"], ["updated_at", "2015-01-07 00:36:30.489469"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] 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] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.3ms [ActiveJob] [ActionMailer::DeliveryJob] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] Date: Tue, 06 Jan 2015 19:36:30 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f8e7f7ac_211740533056140@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8e7eef5_2117405330560c0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8e7eef5_2117405330560c0 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_54ac7f8e7eef5_2117405330560c0 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_54ac7f8e7eef5_2117405330560c0-- [ActiveJob] [ActionMailer::DeliveryJob] [2b5c1bc8-b8d2-4438-99a0-5b17c43bc3d0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.13ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 38ms (ActiveRecord: 0.7ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-06 19:36:30 -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: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_not_logged_in --------------------------------------------------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-07 00:36:30.550085"], ["updated_at", "2015-01-07 00:36:30.550085"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 763d12c8-2c54-4c5d-a228-f3309b2dfb74) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] 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] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.5ms [ActiveJob] [ActionMailer::DeliveryJob] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] Date: Tue, 06 Jan 2015 19:36:30 -0500 From: from@example.com To: example@example.com Message-ID: <54ac7f8e8e807_2117405330563f6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8e8df66_2117405330562ec"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8e8df66_2117405330562ec 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_54ac7f8e8df66_2117405330562ec 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_54ac7f8e8df66_2117405330562ec-- [ActiveJob] [ActionMailer::DeliveryJob] [763d12c8-2c54-4c5d-a228-f3309b2dfb74] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.32ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 39ms (ActiveRecord: 0.9ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#subscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-07 00:36:30.594229"], ["updated_at", "2015-01-07 00:36:30.594229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::SubscriptionsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:36:30 -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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in ------------------------------------------------------------------------------- Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-07 00:36:30.632282"], ["updated_at", "2015-01-07 00:36:30.632282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-07 00:36:30.634843"], ["updated_at", "2015-01-07 00:36:30.634843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title85"], ["body", "body84"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.635985"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.637331"], ["updated_at", "2015-01-07 00:36:30.637331"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-07 00:36:30.654430"], ["updated_at", "2015-01-07 00:36:30.654430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-07 00:36:30.668546"], ["updated_at", "2015-01-07 00:36:30.668546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-07 00:36:30.671454"], ["updated_at", "2015-01-07 00:36:30.671454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title86"], ["body", "body85"], ["author_id", 2], ["created_at", "2015-01-07 00:36:30.673552"], ["updated_at", "2015-01-07 00:36:30.673552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:30.677535"], ["updated_at", "2015-01-07 00:36:30.677535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-07 00:36:30.681599"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-07 00:36:30.694127"], ["updated_at", "2015-01-07 00:36:30.694127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-07 00:36:30.698148"], ["updated_at", "2015-01-07 00:36:30.698148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title87"], ["body", "body86"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.699344"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.700717"], ["updated_at", "2015-01-07 00:36:30.700717"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.5ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-07 00:36:30.718375"], ["updated_at", "2015-01-07 00:36:30.718375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title88"], ["body", "body87"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.720020"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.721282"], ["updated_at", "2015-01-07 00:36:30.721282"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-07 00:36:30.745440"], ["updated_at", "2015-01-07 00:36:30.745440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title89"], ["body", "Numquam qui voluptatem eius inventore excepturi placeat. Et dolor libero. Id aliquid cumque asperiores dolores. Quo saepe est quidem similique optio. Ut non dolores minus placeat consequatur voluptas. Omnis voluptate dolorum est. Amet aut nemo neque cumque accusantium harum ducimus. Recusandae aliquam modi voluptas et omnis consequatur. Velit voluptatum perspiciatis. Corporis explicabo placeat. Aliquam tempore rerum quasi esse voluptatum voluptate. Dolores nihil iure adipisci ducimus. Sapiente aperiam ullam ut quam adipisci incidunt dolor. Qui illum tenetur ratione perferendis qui. Molestias laboriosam eligendi sed non voluptatem rerum atque. Accusamus vel consequatur voluptas dolore pariatur reprehenderit quis. Odio totam et tempora. Eveniet vitae id blanditiis velit. Quo autem molestiae unde repudiandae. Atque unde fugiat nesciunt quo rerum. Ab dicta impedit qui deleniti aspernatur ad est. Ut qui nam. Excepturi ratione sit. Dicta dignissimos sit quae id. Sit quas enim dolores rem molestias officiis. Deleniti dolor consequuntur repellendus atque. Consequatur praesentium ipsum et asperiores nihil. Ullam harum dignissimos. Voluptas hic et. Quibusdam maiores eius eum cum. Voluptates voluptate maiores exercitationem quae voluptatibus perferendis. Dolores dolor sit. In et accusantium cumque culpa rerum aut. Beatae optio dolorem in qui. Veritatis corrupti est ipsa non. Rem ad dicta autem. Accusamus asperiores cupiditate neque perferendis officia beatae. Similique quam ut voluptatem officiis saepe sit omnis. Sunt non accusamus molestias. Laborum sapiente quibusdam et. Et omnis officia. Dignissimos in accusantium. Veritatis in praesentium suscipit veniam quidem quia. Doloremque vitae dolorum. Eum non consequuntur. Nobis hic autem et molestias impedit quidem. Est molestias nihil maiores repellat architecto asperiores. Velit ut sed sunt id veritatis. Nesciunt fuga quasi. Tempora voluptatem a beatae necessitatibus magni debitis. Eum atque alias et ea eaque quam veniam."], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.747281"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.748657"], ["updated_at", "2015-01-07 00:36:30.748657"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-07 00:36:30.752302"], ["updated_at", "2015-01-07 00:36:30.752302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title90"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.753460"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.754652"], ["updated_at", "2015-01-07 00:36:30.754652"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-07 00:36:30.773834"], ["updated_at", "2015-01-07 00:36:30.773834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title91"], ["body", "body88"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.775670"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.777078"], ["updated_at", "2015-01-07 00:36:30.777078"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-07 00:36:30.780539"], ["updated_at", "2015-01-07 00:36:30.780539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title92"], ["body", "body89"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.781687"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.782824"], ["updated_at", "2015-01-07 00:36:30.782824"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-07 00:36:30.801381"], ["updated_at", "2015-01-07 00:36:30.801381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title93"], ["body", "body90"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.803337"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.804812"], ["updated_at", "2015-01-07 00:36:30.804812"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (2.9ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-07 00:36:30.823822"], ["updated_at", "2015-01-07 00:36:30.823822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title94"], ["body", "Labore error expedita omnis velit. Reiciendis corporis voluptas maiores optio vel. Non voluptatibus aut nam consequatur corrupti et. Excepturi corporis qui. Expedita assumenda id. Iure accusantium occaecati debitis. Aut nobis iusto quis molestiae magni voluptatem quibusdam. Aliquid tempore esse pariatur molestias totam. Possimus suscipit vel. Sit consequatur iusto est. Eligendi ullam in. Fugit nihil in. Cumque et quas perspiciatis occaecati. Atque quidem deleniti laudantium voluptate sit eius dolor. Ut fugit corporis non laborum quo eos. Qui itaque et. Eius earum enim voluptatibus tempore sed porro labore. Id voluptatem accusantium blanditiis. Amet magni occaecati et omnis. Quas ut eligendi nobis similique. Id voluptas cupiditate accusantium laudantium qui libero neque. Velit non ut consequatur et dicta rerum vitae. Neque numquam voluptatem consequatur. Commodi ut quas sit. Rerum harum nesciunt nobis. Consectetur est quasi maiores aut non animi. Vitae dolor eligendi ullam. Voluptatem in impedit quas incidunt quos aut. Laudantium at necessitatibus dolorum. Ea corporis voluptas provident quo quibusdam. Tempore nisi eligendi assumenda dolor. Maxime ducimus odit dicta delectus. Molestiae magnam libero incidunt et. Rem alias magni saepe ex. Et deleniti voluptate vel et iure enim omnis. Earum in molestias id laboriosam ipsum sequi magni. Aut ut commodi veniam fugiat sit. Est minima voluptas temporibus accusamus reiciendis. Quae reprehenderit ex qui consequatur velit unde ut. Rerum reprehenderit aspernatur. Aliquid reiciendis maiores vel. Alias voluptas nesciunt magni libero. Iure corporis nisi earum voluptate suscipit. Nisi iusto excepturi quis incidunt perspiciatis nihil. Error sint voluptatibus voluptatem. Ea adipisci id animi aut quo. Exercitationem magnam quae vitae. Est et velit quod sit nisi ad. Esse vitae magni. Qui ut perferendis consequatur tempora quaerat doloremque tenetur."], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.825502"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.826940"], ["updated_at", "2015-01-07 00:36:30.826940"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-07 00:36:30.830550"], ["updated_at", "2015-01-07 00:36:30.830550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title95"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.831724"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.832928"], ["updated_at", "2015-01-07 00:36:30.832928"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.0ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-07 00:36:30.852421"], ["updated_at", "2015-01-07 00:36:30.852421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title96"], ["body", "body91"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.854042"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.855319"], ["updated_at", "2015-01-07 00:36:30.855319"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-07 00:36:30.872677"], ["updated_at", "2015-01-07 00:36:30.872677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title97"], ["body", "body92"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.874495"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.875804"], ["updated_at", "2015-01-07 00:36:30.875804"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-07 00:36:30.879160"], ["updated_at", "2015-01-07 00:36:30.879160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title98"], ["body", "body93"], ["author_id", 2], ["published_at", "2015-01-07 00:36:30.880336"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.881484"], ["updated_at", "2015-01-07 00:36:30.881484"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:36:30 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.2ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-07 00:36:30.905861"], ["updated_at", "2015-01-07 00:36:30.905861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title101"], ["body", "body96"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.907611"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.908965"], ["updated_at", "2015-01-07 00:36:30.908965"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-07 00:36:30.913444"], ["updated_at", "2015-01-07 00:36:30.913444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-07 00:36:30.918132"], ["updated_at", "2015-01-07 00:36:30.918132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-07 00:36:30.921657"], ["updated_at", "2015-01-07 00:36:30.921657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-07 00:36:30.925186"], ["updated_at", "2015-01-07 00:36:30.925186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-07 00:36:30.929616"], ["updated_at", "2015-01-07 00:36:30.929616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-07 00:36:30.932974"], ["updated_at", "2015-01-07 00:36:30.932974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-07 00:36:30.937825"], ["updated_at", "2015-01-07 00:36:30.937825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body98"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.940189"], ["updated_at", "2015-01-07 00:36:30.940189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-07 00:36:30.944025"], ["updated_at", "2015-01-07 00:36:30.944025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title108"], ["body", "body99"], ["author_id", 1], ["created_at", "2015-01-07 00:36:30.946611"], ["updated_at", "2015-01-07 00:36:30.946611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-07 00:36:30.949274"], ["updated_at", "2015-01-07 00:36:30.949274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-07 00:36:30.953093"], ["updated_at", "2015-01-07 00:36:30.953093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-07 00:36:30.957917"], ["updated_at", "2015-01-07 00:36:30.957917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title111"], ["body", "body102"], ["author_id", 4], ["published_at", "2015-01-07 00:36:30.959364"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.960764"], ["updated_at", "2015-01-07 00:36:30.960764"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-07 00:36:30.964665"], ["updated_at", "2015-01-07 00:36:30.964665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-07 00:36:30.967390"], ["updated_at", "2015-01-07 00:36:30.967390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-07 00:36:30.970261"], ["updated_at", "2015-01-07 00:36:30.970261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-07 00:36:30.972636"], ["updated_at", "2015-01-07 00:36:30.972636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-07 00:36:30.974857"], ["updated_at", "2015-01-07 00:36:30.974857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-07 00:36:30.977868"], ["updated_at", "2015-01-07 00:36:30.977868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 1], ["published_at", "2015-01-07 00:36:30.979309"], ["state", "published"], ["created_at", "2015-01-07 00:36:30.980595"], ["updated_at", "2015-01-07 00:36:30.980595"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-07 00:36:30.991035"], ["updated_at", "2015-01-07 00:36:30.991035"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 98b23d30-cf8c-40c7-ab00-2705f7c758df) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [98b23d30-cf8c-40c7-ab00-2705f7c758df] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [98b23d30-cf8c-40c7-ab00-2705f7c758df] 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] [98b23d30-cf8c-40c7-ab00-2705f7c758df] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.0ms [ActiveJob] [ActionMailer::DeliveryJob] [98b23d30-cf8c-40c7-ab00-2705f7c758df] Sent mail to foo@bar.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [98b23d30-cf8c-40c7-ab00-2705f7c758df] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: foo@bar.com Message-ID: <54ac7f8f6066_2117405330565a0@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f5743_2117405330564ef"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f5743_2117405330564ef 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_54ac7f8f5743_2117405330564ef 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_54ac7f8f5743_2117405330564ef-- [ActiveJob] [ActionMailer::DeliveryJob] [98b23d30-cf8c-40c7-ab00-2705f7c758df] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.28ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-07 00:36:31.031660"], ["updated_at", "2015-01-07 00:36:31.031660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.034138"], ["updated_at", "2015-01-07 00:36:31.034138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.036959"], ["updated_at", "2015-01-07 00:36:31.036959"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 504db18f-1031-46c3-b0ee-6b403a5df457) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] 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] [504db18f-1031-46c3-b0ee-6b403a5df457] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.6ms [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] Sent mail to foo@bar.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: foo@bar.com Message-ID: <54ac7f8f1120d_211740533056767@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f10919_211740533056613"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f10919_211740533056613 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_54ac7f8f10919_211740533056613 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_54ac7f8f10919_211740533056613-- [ActiveJob] [ActionMailer::DeliveryJob] [504db18f-1031-46c3-b0ee-6b403a5df457] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.48ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-07 00:36:31.080137"], ["updated_at", "2015-01-07 00:36:31.080137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title119"], ["body", "body105"], ["author_id", 1], ["published_at", "2015-01-07 00:36:31.081762"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.083100"], ["updated_at", "2015-01-07 00:36:31.083100"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email32@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.087393"], ["updated_at", "2015-01-07 00:36:31.087393"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d8264fec-274d-471c-884f-b5bcd2def486) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] 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] [d8264fec-274d-471c-884f-b5bcd2def486] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 38.2ms [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] Sent mail to email32@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: email32@example.com Message-ID: <54ac7f8f1fdbc_2117405330569c2@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f1f50c_2117405330568c6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f1f50c_2117405330568c6 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_54ac7f8f1f50c_2117405330568c6 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_54ac7f8f1f50c_2117405330568c6-- [ActiveJob] [ActionMailer::DeliveryJob] [d8264fec-274d-471c-884f-b5bcd2def486] Performed ActionMailer::DeliveryJob from Inline(mailers) in 42.08ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-07 00:36:31.135095"], ["updated_at", "2015-01-07 00:36:31.135095"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 092cceb7-780b-4b71-b8bd-8b59fac70bf0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] 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] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.4ms [ActiveJob] [ActionMailer::DeliveryJob] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] Sent mail to email33@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: email33@example.com Message-ID: <54ac7f8f28841_21174053305718@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f27f50_211740533057041"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f27f50_211740533057041 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_54ac7f8f27f50_211740533057041 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_54ac7f8f27f50_211740533057041-- [ActiveJob] [ActionMailer::DeliveryJob] [092cceb7-780b-4b71-b8bd-8b59fac70bf0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.13ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.2ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-07 00:36:31.171117"], ["updated_at", "2015-01-07 00:36:31.171117"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a0a148fd-986e-44f3-b67b-5b27f06ccc86) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] 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] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.5ms [ActiveJob] [ActionMailer::DeliveryJob] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] Sent mail to email34@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: email34@example.com Message-ID: <54ac7f8f31afb_2117405330573ba@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f31244_21174053305729e"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f31244_21174053305729e 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_54ac7f8f31244_21174053305729e 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_54ac7f8f31244_21174053305729e-- [ActiveJob] [ActionMailer::DeliveryJob] [a0a148fd-986e-44f3-b67b-5b27f06ccc86] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.15ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email35@example.com"], ["created_at", "2015-01-07 00:36:31.207772"], ["updated_at", "2015-01-07 00:36:31.207772"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 83d45fd1-afc4-4225-8a26-b4c8cb1a44d0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] 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] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.9ms [ActiveJob] [ActionMailer::DeliveryJob] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] Sent mail to email35@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] Date: Tue, 06 Jan 2015 19:36:31 -0500 From: from@example.com To: email35@example.com Message-ID: <54ac7f8f3a7d6_21174053305751e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac7f8f39f1e_211740533057487"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac7f8f39f1e_211740533057487 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_54ac7f8f39f1e_211740533057487 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_54ac7f8f39f1e_211740533057487-- [ActiveJob] [ActionMailer::DeliveryJob] [83d45fd1-afc4-4225-8a26-b4c8cb1a44d0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.62ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-07 00:36:31.245804"], ["updated_at", "2015-01-07 00:36:31.245804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.248470"], ["updated_at", "2015-01-07 00:36:31.248470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:31.252401"], ["updated_at", "2015-01-07 00:36:31.252401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-07 00:36:31.258388"], ["updated_at", "2015-01-07 00:36:31.258388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.260901"], ["updated_at", "2015-01-07 00:36:31.260901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-07 00:36:31.270406"], ["updated_at", "2015-01-07 00:36:31.270406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.273265"], ["updated_at", "2015-01-07 00:36:31.273265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:36:31.277532"], ["updated_at", "2015-01-07 00:36:31.277532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-07 00:36:31.287948"], ["updated_at", "2015-01-07 00:36:31.287948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-07 00:36:31.291730"], ["updated_at", "2015-01-07 00:36:31.291730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.293850"], ["updated_at", "2015-01-07 00:36:31.293850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author34"], ["body", "body33"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.296012"], ["updated_at", "2015-01-07 00:36:31.296012"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author34", "body"=>"body33", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms) Completed 200 OK in 20ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-07 00:36:31.328151"], ["updated_at", "2015-01-07 00:36:31.328151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.330848"], ["updated_at", "2015-01-07 00:36:31.330848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body34"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.333594"], ["updated_at", "2015-01-07 00:36:31.333594"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author36", "body"=>"body35", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-07 00:36:31.348856"], ["updated_at", "2015-01-07 00:36:31.348856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 2], ["published_at", "2015-01-07 00:36:31.350212"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.351609"], ["updated_at", "2015-01-07 00:36:31.351609"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body36"], ["post_id", 2], ["created_at", "2015-01-07 00:36:31.354221"], ["updated_at", "2015-01-07 00:36:31.354221"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author38", "body"=>"body37", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body37"], ["author", "author38"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-07 00:36:31.363713"], ["updated_at", "2015-01-07 00:36:31.363713"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 2 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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.8ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-07 00:36:31.384371"], ["updated_at", "2015-01-07 00:36:31.384371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-07 00:36:31.387901"], ["updated_at", "2015-01-07 00:36:31.387901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.390217"], ["updated_at", "2015-01-07 00:36:31.390217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author39"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.392856"], ["updated_at", "2015-01-07 00:36:31.392856"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author40", "body"=>"body39", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body39"], ["author", "author40"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:36:31.405780"], ["updated_at", "2015-01-07 00:36:31.405780"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.3ms) 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.6ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-07 00:36:31.433742"], ["updated_at", "2015-01-07 00:36:31.433742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.435121"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.436434"], ["updated_at", "2015-01-07 00:36:31.436434"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author41"], ["body", "body40"], ["post_id", 2], ["created_at", "2015-01-07 00:36:31.439169"], ["updated_at", "2015-01-07 00:36:31.439169"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author42", "body"=>"body41", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body41"], ["author", "author42"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-07 00:36:31.448452"], ["updated_at", "2015-01-07 00:36:31.448452"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 4, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 3 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 4]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) 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.5ms) Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-07 00:36:31.476700"], ["updated_at", "2015-01-07 00:36:31.476700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.479279"], ["updated_at", "2015-01-07 00:36:31.479279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author43"], ["body", "body42"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.481565"], ["updated_at", "2015-01-07 00:36:31.481565"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author43", "body"=>"body42", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-07 00:36:31.494428"], ["updated_at", "2015-01-07 00:36:31.494428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.497037"], ["updated_at", "2015-01-07 00:36:31.497037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author44", "body"=>"body43", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-07 00:36:31.508205"], ["updated_at", "2015-01-07 00:36:31.508205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 2], ["published_at", "2015-01-07 00:36:31.509601"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.510923"], ["updated_at", "2015-01-07 00:36:31.510923"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author45", "body"=>"body44", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body44"], ["author", "author45"], ["post_id", 2], ["created_at", "2015-01-07 00:36:31.516906"], ["updated_at", "2015-01-07 00:36:31.516906"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.9ms) Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-07 00:36:31.535022"], ["updated_at", "2015-01-07 00:36:31.535022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 1], ["published_at", "2015-01-07 00:36:31.536678"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.537977"], ["updated_at", "2015-01-07 00:36:31.537977"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author46", "body"=>"body45", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-07 00:36:31.549892"], ["updated_at", "2015-01-07 00:36:31.549892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-07 00:36:31.553519"], ["updated_at", "2015-01-07 00:36:31.553519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.555662"], ["updated_at", "2015-01-07 00:36:31.555662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author47", "body"=>"body46", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body46"], ["author", "author47"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.564750"], ["updated_at", "2015-01-07 00:36:31.564750"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) 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.4ms) Completed 200 OK in 23ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-07 00:36:31.588383"], ["updated_at", "2015-01-07 00:36:31.588383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.589877"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.591181"], ["updated_at", "2015-01-07 00:36:31.591181"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author48", "body"=>"body47", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body47"], ["author", "author48"], ["post_id", 2], ["created_at", "2015-01-07 00:36:31.597351"], ["updated_at", "2015-01-07 00:36:31.597351"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.3ms) Completed 200 OK in 23ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-07 00:36:31.621318"], ["updated_at", "2015-01-07 00:36:31.621318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-07 00:36:31.625192"], ["updated_at", "2015-01-07 00:36:31.625192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.627408"], ["updated_at", "2015-01-07 00:36:31.627408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.629865"], ["updated_at", "2015-01-07 00:36:31.629865"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-07 00:36:31.645399"], ["updated_at", "2015-01-07 00:36:31.645399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title135"], ["body", "body121"], ["author_id", 1], ["published_at", "2015-01-07 00:36:31.647629"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.649283"], ["updated_at", "2015-01-07 00:36:31.649283"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author50"], ["body", "body49"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.652589"], ["updated_at", "2015-01-07 00:36:31.652589"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author51", "body"=>"body50", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-07 00:36:31.669061"], ["updated_at", "2015-01-07 00:36:31.669061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 1], ["created_at", "2015-01-07 00:36:31.671628"], ["updated_at", "2015-01-07 00:36:31.671628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author52"], ["body", "body51"], ["post_id", 1], ["created_at", "2015-01-07 00:36:31.673905"], ["updated_at", "2015-01-07 00:36:31.673905"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-07 00:36:31.686904"], ["updated_at", "2015-01-07 00:36:31.686904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-07 00:36:31.689401"], ["updated_at", "2015-01-07 00:36:31.689401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.691556"], ["updated_at", "2015-01-07 00:36:31.691556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-07 00:36:31.694345"], ["updated_at", "2015-01-07 00:36:31.694345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.695549"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.697204"], ["updated_at", "2015-01-07 00:36:31.697204"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-07 00:36:31.702882"], ["updated_at", "2015-01-07 00:36:31.702882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-07 00:36:31.705251"], ["updated_at", "2015-01-07 00:36:31.705251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.707549"], ["updated_at", "2015-01-07 00:36:31.707549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-07 00:36:31.710779"], ["updated_at", "2015-01-07 00:36:31.710779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.712081"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.713541"], ["updated_at", "2015-01-07 00:36:31.713541"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-07 00:36:31.717309"], ["updated_at", "2015-01-07 00:36:31.717309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-07 00:36:31.719646"], ["updated_at", "2015-01-07 00:36:31.719646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.721701"], ["updated_at", "2015-01-07 00:36:31.721701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-07 00:36:31.724255"], ["updated_at", "2015-01-07 00:36:31.724255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.725374"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.726594"], ["updated_at", "2015-01-07 00:36:31.726594"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-07 00:36:31.729754"], ["updated_at", "2015-01-07 00:36:31.729754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-07 00:36:31.732147"], ["updated_at", "2015-01-07 00:36:31.732147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.734142"], ["updated_at", "2015-01-07 00:36:31.734142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-07 00:36:31.736677"], ["updated_at", "2015-01-07 00:36:31.736677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 3], ["published_at", "2015-01-07 00:36:31.737840"], ["state", "published"], ["created_at", "2015-01-07 00:36:31.739420"], ["updated_at", "2015-01-07 00:36:31.739420"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-07 00:36:31.743296"], ["updated_at", "2015-01-07 00:36:31.743296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-07 00:36:31.745629"], ["updated_at", "2015-01-07 00:36:31.745629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 2], ["created_at", "2015-01-07 00:36:31.748072"], ["updated_at", "2015-01-07 00:36:31.748072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------- PostTest: test_show_should_show_author_name -------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name1"], ["last_name", "last_name1"], ["created_at", "2015-01-07 00:41:49.892165"], ["updated_at", "2015-01-07 00:41:49.892165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title1"], ["body", "body1"], ["author_id", 1], ["published_at", "2015-01-07 00:41:49.900290"], ["state", "published"], ["created_at", "2015-01-07 00:41:49.902838"], ["updated_at", "2015-01-07 00:41:49.902838"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:41:49 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (13.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (374.0ms) Completed 200 OK in 430ms (Views: 425.6ms | ActiveRecord: 0.6ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PostTest: test_index_should_show_post_titles --------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name2"], ["last_name", "last_name2"], ["created_at", "2015-01-07 00:41:50.364739"], ["updated_at", "2015-01-07 00:41:50.364739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title2"], ["body", "body2"], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.366395"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.367685"], ["updated_at", "2015-01-07 00:41:50.367685"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name3"], ["last_name", "last_name3"], ["created_at", "2015-01-07 00:41:50.370956"], ["updated_at", "2015-01-07 00:41:50.370956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title3"], ["body", "body3"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.372073"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.373301"], ["updated_at", "2015-01-07 00:41:50.373301"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (5.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PostTest: test_index_should_give_option_to_edit_post_if_logged_in -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name4"], ["last_name", "last_name4"], ["created_at", "2015-01-07 00:41:50.393317"], ["updated_at", "2015-01-07 00:41:50.393317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name5"], ["last_name", "last_name5"], ["created_at", "2015-01-07 00:41:50.396122"], ["updated_at", "2015-01-07 00:41:50.396122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title4"], ["body", "body4"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.397244"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.398575"], ["updated_at", "2015-01-07 00:41:50.398575"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PostTest: test_index_should_show_authors ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name6"], ["last_name", "last_name6"], ["created_at", "2015-01-07 00:41:50.414629"], ["updated_at", "2015-01-07 00:41:50.414629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title5"], ["body", "body5"], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.416221"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.417505"], ["updated_at", "2015-01-07 00:41:50.417505"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name7"], ["last_name", "last_name7"], ["created_at", "2015-01-07 00:41:50.421215"], ["updated_at", "2015-01-07 00:41:50.421215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title6"], ["body", "body6"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.422545"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.423963"], ["updated_at", "2015-01-07 00:41:50.423963"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (3.7ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PostTest: test_index_should_show_more_link ------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name8"], ["last_name", "last_name8"], ["created_at", "2015-01-07 00:41:50.443239"], ["updated_at", "2015-01-07 00:41:50.443239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title7"], ["body", "Nisi voluptates maiores exercitationem. Amet quia ut. Repellendus sint corrupti est. Quo quidem delectus explicabo sit quia quis minus. Fugiat neque sed nobis pariatur. At unde saepe harum non et. Inventore omnis qui voluptas enim aut ea unde. Est eveniet minus. Et mollitia quisquam. Itaque magnam aut at aperiam dolor. Voluptates sit nobis inventore distinctio. In ullam et aut. Cumque saepe sapiente a et excepturi. Eum qui veniam. Qui totam qui magnam eos. Quod beatae velit itaque distinctio eius dolor dignissimos. Facilis numquam sapiente aut adipisci beatae voluptatem eaque. Velit totam nisi debitis dignissimos sunt. Aut iure consectetur temporibus accusantium eos. Architecto tempore ut suscipit. Ipsum ratione dolorem natus. Et corporis sed consectetur. Eum autem voluptatem reprehenderit ea saepe. Distinctio alias iure ipsa voluptates qui aut. Dignissimos magni tenetur itaque id ad voluptatem nihil. Aliquid esse dolorem. Quo aspernatur officiis sequi cupiditate omnis. Suscipit quia impedit sed sit eos nemo. Sit non quia dolorem doloremque voluptatem veniam facilis. Rerum voluptatum consequatur id et voluptates. Doloribus reiciendis et. Doloremque laborum et aut deserunt facilis qui aut. Asperiores repellat ut ducimus. Mollitia et ab voluptates accusantium excepturi similique. Natus quia eveniet. Est quae maxime rerum ab. Error laboriosam pariatur qui similique sint. Est necessitatibus in qui velit. Excepturi et aut. Quia debitis nesciunt et occaecati. Sit laboriosam et molestiae. Voluptas quam sed voluptatem accusantium. Sed asperiores impedit explicabo quia. Qui atque facere deserunt nostrum. Vitae consequatur doloribus quidem est ratione. Magnam quis qui. Dolorem tenetur est eos ipsum. Et esse nihil reiciendis. Soluta iste autem asperiores eveniet. Voluptatem modi asperiores vero illo ratione in. Facilis aperiam perspiciatis debitis rem."], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.444888"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.446275"], ["updated_at", "2015-01-07 00:41:50.446275"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name9"], ["last_name", "last_name9"], ["created_at", "2015-01-07 00:41:50.449963"], ["updated_at", "2015-01-07 00:41:50.449963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title8"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.451349"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.452771"], ["updated_at", "2015-01-07 00:41:50.452771"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.2ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PostTest: test_index_should_show_excerpts -----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name10"], ["last_name", "last_name10"], ["created_at", "2015-01-07 00:41:50.472037"], ["updated_at", "2015-01-07 00:41:50.472037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title9"], ["body", "Voluptatem dicta labore quas suscipit enim. Et repellat quam nihil fugiat. Voluptate enim aut recusandae similique quo. Aut molestias aliquid. Optio rem dolor sint. Commodi consectetur qui suscipit totam voluptatum. Et assumenda repellendus. Vero quas quibusdam aut id ullam eum. Dolorem dolorum earum et ipsa. Consectetur reiciendis quia qui minus accusamus doloribus. Eum autem est harum iusto aut expedita qui. Nisi nulla aliquid sint deserunt non voluptatibus. Totam iusto consequatur ducimus iste provident voluptas quisquam. Accusamus ducimus quam quaerat. Eum quos unde eos corrupti maxime. Architecto impedit quis sunt numquam libero. Quisquam odio quia quis et qui. Modi ipsum dolore culpa. Qui fuga accusantium qui minus ipsum a. Aut dolores accusamus nesciunt accusantium. Asperiores et ratione qui quo facilis magni libero. Voluptas nulla et necessitatibus nisi saepe quod. Beatae tempore tempora cumque. Eaque porro optio eum voluptatibus ea. Rem consequatur perferendis culpa eum. Eaque voluptate est voluptas fugit. Et inventore accusamus commodi. Inventore alias dicta. Facere dolorem ducimus enim. Qui aspernatur voluptatibus perferendis iusto id tempora. In labore alias deserunt voluptates eveniet velit optio. Sit consequatur dicta quia iusto neque. Deserunt id iure cumque quia sit. Qui quia eligendi ad sint minus. Praesentium rerum voluptatem sit. Atque accusantium sit ad et totam rerum hic. Libero veritatis molestiae est officia. Dolor accusantium excepturi dolor magnam quod officiis nisi. Et omnis doloremque. Cumque natus rerum voluptatum esse fugit. Voluptatem numquam in. Dicta veniam tenetur necessitatibus eaque nulla quidem ut. Quia recusandae ad ut adipisci asperiores exercitationem alias. Eum ab deleniti. Ipsa laborum sit vel fuga eius. Est error voluptatem aspernatur sint quibusdam. Rerum eaque ipsa ut enim voluptate consequatur. Distinctio voluptatum maiores aut. Repellendus omnis dolores vitae ducimus laudantium. Voluptas qui ratione quia maiores. Sed nostrum doloribus et quas. Id rerum aperiam cumque recusandae."], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.473675"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.475074"], ["updated_at", "2015-01-07 00:41:50.475074"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name11"], ["last_name", "last_name11"], ["created_at", "2015-01-07 00:41:50.478586"], ["updated_at", "2015-01-07 00:41:50.478586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title10"], ["body", "foo"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.479922"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.481433"], ["updated_at", "2015-01-07 00:41:50.481433"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.1ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PostTest: test_image_should_have_relative_source_path -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name12"], ["last_name", "last_name12"], ["created_at", "2015-01-07 00:41:50.498933"], ["updated_at", "2015-01-07 00:41:50.498933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name13"], ["last_name", "last_name13"], ["created_at", "2015-01-07 00:41:50.505082"], ["updated_at", "2015-01-07 00:41:50.505082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title11"], ["body", "body7"], ["author_id", 2], ["created_at", "2015-01-07 00:41:50.507290"], ["updated_at", "2015-01-07 00:41:50.507290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:41:50.512226"], ["updated_at", "2015-01-07 00:41:50.512226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-07 00:41:50.516891"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PostTest: test_index_should_give_option_to_create_new_post_if_logged_in -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name14"], ["last_name", "last_name14"], ["created_at", "2015-01-07 00:41:50.523360"], ["updated_at", "2015-01-07 00:41:50.523360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" 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.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PostTest: test_index_should_give_option_to_delete_post_if_logged_in -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name15"], ["last_name", "last_name15"], ["created_at", "2015-01-07 00:41:50.536050"], ["updated_at", "2015-01-07 00:41:50.536050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name16"], ["last_name", "last_name16"], ["created_at", "2015-01-07 00:41:50.538597"], ["updated_at", "2015-01-07 00:41:50.538597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title12"], ["body", "body8"], ["author_id", 2], ["published_at", "2015-01-07 00:41:50.539787"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.541239"], ["updated_at", "2015-01-07 00:41:50.541239"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (2.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_create_new_post_if_not_logged_in ------------------------------------------------------------------------------- Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_delete_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name17"], ["last_name", "last_name17"], ["created_at", "2015-01-07 00:41:50.566888"], ["updated_at", "2015-01-07 00:41:50.566888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title13"], ["body", "body9"], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.568532"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.569805"], ["updated_at", "2015-01-07 00:41:50.569805"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (2.8ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PostTest: test_index_should_not_give_option_to_edit_post_if_not_logged_in -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name18"], ["last_name", "last_name18"], ["created_at", "2015-01-07 00:41:50.585884"], ["updated_at", "2015-01-07 00:41:50.585884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title14"], ["body", "body10"], ["author_id", 1], ["published_at", "2015-01-07 00:41:50.587531"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.588785"], ["updated_at", "2015-01-07 00:41:50.588785"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:41:50 -0500 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (2.7ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- SubscriptionPolicyTest: test_subscription_unsubscribe -----------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name19"], ["last_name", "last_name19"], ["created_at", "2015-01-07 00:41:50.603376"], ["updated_at", "2015-01-07 00:41:50.603376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email1@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email1@example.com"], ["created_at", "2015-01-07 00:41:50.611290"], ["updated_at", "2015-01-07 00:41:50.611290"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f1c6990a-1ddd-45ba-8f47-51955648dbdd) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] 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] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 189.5ms [ActiveJob] [ActionMailer::DeliveryJob] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] Sent mail to email1@example.com (9.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] Date: Tue, 06 Jan 2015 19:41:50 -0500 From: from@example.com To: email1@example.com Message-ID: <54ac80cec9c35_22313df33864845@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cec8328_22313df3386471"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cec8328_22313df3386471 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_54ac80cec8328_22313df3386471 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_54ac80cec8328_22313df3386471-- [ActiveJob] [ActionMailer::DeliveryJob] [f1c6990a-1ddd-45ba-8f47-51955648dbdd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 199.88ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- SubscriptionPolicyTest: test_subscription_destroy -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name20"], ["last_name", "last_name20"], ["created_at", "2015-01-07 00:41:50.833834"], ["updated_at", "2015-01-07 00:41:50.833834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email2@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email2@example.com"], ["created_at", "2015-01-07 00:41:50.836675"], ["updated_at", "2015-01-07 00:41:50.836675"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 73eadef0-dcd8-4f89-af8f-3d8d618b57e6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] 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] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.9ms [ActiveJob] [ActionMailer::DeliveryJob] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] Sent mail to email2@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] Date: Tue, 06 Jan 2015 19:41:50 -0500 From: from@example.com To: email2@example.com Message-ID: <54ac80ced3897_22313df338650a8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80ced2fb1_22313df33864935"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80ced2fb1_22313df33864935 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_54ac80ced2fb1_22313df33864935 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_54ac80ced2fb1_22313df33864935-- [ActiveJob] [ActionMailer::DeliveryJob] [73eadef0-dcd8-4f89-af8f-3d8d618b57e6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.54ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- SubscriptionPolicyTest: test_subscription_scope -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name21"], ["last_name", "last_name21"], ["created_at", "2015-01-07 00:41:50.870695"], ["updated_at", "2015-01-07 00:41:50.870695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email3@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email3@example.com"], ["created_at", "2015-01-07 00:41:50.873307"], ["updated_at", "2015-01-07 00:41:50.873307"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b889e2cc-7c25-4252-8415-31e025898227) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b889e2cc-7c25-4252-8415-31e025898227] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [b889e2cc-7c25-4252-8415-31e025898227] 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] [b889e2cc-7c25-4252-8415-31e025898227] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.5ms [ActiveJob] [ActionMailer::DeliveryJob] [b889e2cc-7c25-4252-8415-31e025898227] Sent mail to email3@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [b889e2cc-7c25-4252-8415-31e025898227] Date: Tue, 06 Jan 2015 19:41:50 -0500 From: from@example.com To: email3@example.com Message-ID: <54ac80cedc4db_22313df338652e2@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cedbca9_22313df33865175"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cedbca9_22313df33865175 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_54ac80cedbca9_22313df33865175 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_54ac80cedbca9_22313df33865175-- [ActiveJob] [ActionMailer::DeliveryJob] [b889e2cc-7c25-4252-8415-31e025898227] Performed ActionMailer::DeliveryJob from Inline(mailers) in 28.02ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email4@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email4@example.com"], ["created_at", "2015-01-07 00:41:50.906408"], ["updated_at", "2015-01-07 00:41:50.906408"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fdff60c3-6c76-40e0-a11e-383b4e3f35a6) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] 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] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.1ms [ActiveJob] [ActionMailer::DeliveryJob] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] Sent mail to email4@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] Date: Tue, 06 Jan 2015 19:41:50 -0500 From: from@example.com To: email4@example.com Message-ID: <54ac80cee3f97_22313df338654fc@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cee3793_22313df3386538f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cee3793_22313df3386538f 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_54ac80cee3793_22313df3386538f 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_54ac80cee3793_22313df3386538f-- [ActiveJob] [ActionMailer::DeliveryJob] [fdff60c3-6c76-40e0-a11e-383b4e3f35a6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.58ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- SubscriptionPolicyTest: test_subscription_creation --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name22"], ["last_name", "last_name22"], ["created_at", "2015-01-07 00:41:50.938991"], ["updated_at", "2015-01-07 00:41:50.938991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name23"], ["last_name", "last_name23"], ["created_at", "2015-01-07 00:41:50.941980"], ["updated_at", "2015-01-07 00:41:50.941980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title15"], ["body", "body11"], ["author_id", 2], ["created_at", "2015-01-07 00:41:50.944018"], ["updated_at", "2015-01-07 00:41:50.944018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name24"], ["last_name", "last_name24"], ["created_at", "2015-01-07 00:41:50.946932"], ["updated_at", "2015-01-07 00:41:50.946932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title16"], ["body", "body12"], ["author_id", 3], ["published_at", "2015-01-07 00:41:50.948077"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.949293"], ["updated_at", "2015-01-07 00:41:50.949293"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name25"], ["last_name", "last_name25"], ["created_at", "2015-01-07 00:41:50.952695"], ["updated_at", "2015-01-07 00:41:50.952695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title17"], ["body", "body13"], ["author_id", 4], ["created_at", "2015-01-07 00:41:50.954568"], ["updated_at", "2015-01-07 00:41:50.954568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name26"], ["last_name", "last_name26"], ["created_at", "2015-01-07 00:41:50.957077"], ["updated_at", "2015-01-07 00:41:50.957077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title18"], ["body", "body14"], ["author_id", 5], ["published_at", "2015-01-07 00:41:50.958155"], ["state", "published"], ["created_at", "2015-01-07 00:41:50.959253"], ["updated_at", "2015-01-07 00:41:50.959253"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ SubscriptionPolicyTest: test_subscription_update ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name27"], ["last_name", "last_name27"], ["created_at", "2015-01-07 00:41:50.962417"], ["updated_at", "2015-01-07 00:41:50.962417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email11@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email11@example.com"], ["created_at", "2015-01-07 00:41:50.964953"], ["updated_at", "2015-01-07 00:41:50.964953"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c3e1dec8-3d81-428b-b30b-d0da1ec03d32) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] 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] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] Sent mail to email11@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] Date: Tue, 06 Jan 2015 19:41:50 -0500 From: from@example.com To: email11@example.com Message-ID: <54ac80cef2780_22313df3386565e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cef1f60_22313df338655d"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cef1f60_22313df338655d 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_54ac80cef1f60_22313df338655d 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_54ac80cef1f60_22313df338655d-- [ActiveJob] [ActionMailer::DeliveryJob] [c3e1dec8-3d81-428b-b30b-d0da1ec03d32] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.93ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::ImageTest: test_ensure_factory_is_good ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name28"], ["last_name", "last_name28"], ["created_at", "2015-01-07 00:41:50.998515"], ["updated_at", "2015-01-07 00:41:50.998515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title19"], ["body", "body15"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.001187"], ["updated_at", "2015-01-07 00:41:51.001187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:41:51.004909"], ["updated_at", "2015-01-07 00:41:51.004909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImageTest: test_ensure_image_is_cached,_saved,_and_removed_correctly ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name29"], ["last_name", "last_name29"], ["created_at", "2015-01-07 00:41:51.009325"], ["updated_at", "2015-01-07 00:41:51.009325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title20"], ["body", "body16"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.011666"], ["updated_at", "2015-01-07 00:41:51.011666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:41:51.015474"], ["updated_at", "2015-01-07 00:41:51.015474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Proclaim::ImageTest: test_ensure_image_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name30"], ["last_name", "last_name30"], ["created_at", "2015-01-07 00:41:51.021263"], ["updated_at", "2015-01-07 00:41:51.021263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title21"], ["body", "body17"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.023769"], ["updated_at", "2015-01-07 00:41:51.023769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Proclaim::ImageTest: test_ensure_post_is_required -------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Proclaim::ImageTest: test_ensure_post_validity_is_verified ----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_logged_in -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name31"], ["last_name", "last_name31"], ["created_at", "2015-01-07 00:41:51.046037"], ["updated_at", "2015-01-07 00:41:51.046037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email12@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"5"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email12@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email12@example.com"], ["created_at", "2015-01-07 00:41:51.055744"], ["updated_at", "2015-01-07 00:41:51.055744"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ea892c87-4e28-479d-b9b1-6ea11d751f91) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ea892c87-4e28-479d-b9b1-6ea11d751f91] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ea892c87-4e28-479d-b9b1-6ea11d751f91] 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] [ea892c87-4e28-479d-b9b1-6ea11d751f91] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.3ms [ActiveJob] [ActionMailer::DeliveryJob] [ea892c87-4e28-479d-b9b1-6ea11d751f91] Sent mail to email12@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [ea892c87-4e28-479d-b9b1-6ea11d751f91] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email12@example.com Message-ID: <54ac80cf148d1_22313df33865827@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf14083_22313df338657ce"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf14083_22313df338657ce 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_54ac80cf14083_22313df338657ce 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_54ac80cf14083_22313df338657ce-- [ActiveJob] [ActionMailer::DeliveryJob] [ea892c87-4e28-479d-b9b1-6ea11d751f91] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.89ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 36ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_ensure_token_resolves_to_correct_subscription -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email13@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email13@example.com"], ["created_at", "2015-01-07 00:41:51.094394"], ["updated_at", "2015-01-07 00:41:51.094394"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 22201358-350c-41a1-8842-1136c5662bcf) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22201358-350c-41a1-8842-1136c5662bcf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [22201358-350c-41a1-8842-1136c5662bcf] 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] [22201358-350c-41a1-8842-1136c5662bcf] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 31.1ms [ActiveJob] [ActionMailer::DeliveryJob] [22201358-350c-41a1-8842-1136c5662bcf] Sent mail to email13@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [22201358-350c-41a1-8842-1136c5662bcf] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email13@example.com Message-ID: <54ac80cf1fd81_22313df338660e5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf1f496_22313df33865996"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf1f496_22313df33865996 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_54ac80cf1f496_22313df33865996 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_54ac80cf1f496_22313df33865996-- [ActiveJob] [ActionMailer::DeliveryJob] [22201358-350c-41a1-8842-1136c5662bcf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.91ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email14@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email14@example.com"], ["created_at", "2015-01-07 00:41:51.134722"], ["updated_at", "2015-01-07 00:41:51.134722"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6a082be2-1736-4eba-9ebf-8bebf8b333a8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] 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] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.8ms [ActiveJob] [ActionMailer::DeliveryJob] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] Sent mail to email14@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email14@example.com Message-ID: <54ac80cf28600_22313df338662b6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf27bdd_22313df338661cd"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf27bdd_22313df338661cd 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_54ac80cf27bdd_22313df338661cd 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_54ac80cf27bdd_22313df338661cd-- [ActiveJob] [ActionMailer::DeliveryJob] [6a082be2-1736-4eba-9ebf-8bebf8b333a8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.69ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (3.1ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms) Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (2.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::SubscriptionsControllerTest: test_should_create_subscription_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email15@example.com"}, "antispam"=>{"solution"=>"3", "answer"=>"3"}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email15@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email15@example.com"], ["created_at", "2015-01-07 00:41:51.192099"], ["updated_at", "2015-01-07 00:41:51.192099"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 45d0ae88-91bc-4dfd-a001-4d09ffaa01ae) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] 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] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.1ms [ActiveJob] [ActionMailer::DeliveryJob] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] Sent mail to email15@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email15@example.com Message-ID: <54ac80cf37a8b_22313df33866434@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf371af_22313df33866325"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf371af_22313df33866325 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_54ac80cf371af_22313df33866325 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_54ac80cf371af_22313df33866325-- [ActiveJob] [ActionMailer::DeliveryJob] [45d0ae88-91bc-4dfd-a001-4d09ffaa01ae] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.96ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/subscribed Completed 302 Found in 43ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_should_not_create_subscription_if_spammy ------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"subscription"=>{"email"=>"email16@example.com"}, "antispam"=>{"solution"=>"5", "answer"=>"3"}} Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (3.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (5.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionsControllerTest: test_ensure_deletion_with_token_actually_deletes_correct_subscription ------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email17@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email17@example.com"], ["created_at", "2015-01-07 00:41:51.252165"], ["updated_at", "2015-01-07 00:41:51.252165"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fbed1e65-182b-40f8-aacd-4ae169a4d71d) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] 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] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.1ms [ActiveJob] [ActionMailer::DeliveryJob] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] Sent mail to email17@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email17@example.com Message-ID: <54ac80cf44aa2_22313df338666c6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf441a6_22313df3386655a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf441a6_22313df3386655a 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_54ac80cf441a6_22313df3386655a 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_54ac80cf441a6_22313df3386655a-- [ActiveJob] [ActionMailer::DeliveryJob] [fbed1e65-182b-40f8-aacd-4ae169a4d71d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.93ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email18@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email18@example.com"], ["created_at", "2015-01-07 00:41:51.285613"], ["updated_at", "2015-01-07 00:41:51.285613"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8baf3e26-14b4-41ae-853b-e794a3b3eeea) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] 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] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 23.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] Sent mail to email18@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] Date: Tue, 06 Jan 2015 19:41:51 -0500 From: from@example.com To: email18@example.com Message-ID: <54ac80cf4c765_22313df3386688f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80cf4bf4c_22313df338667f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80cf4bf4c_22313df338667f 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_54ac80cf4bf4c_22313df338667f 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_54ac80cf4bf4c_22313df338667f-- [ActiveJob] [ActionMailer::DeliveryJob] [8baf3e26-14b4-41ae-853b-e794a3b3eeea] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.75ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBw==--f4739846308906151144c7e9d5e19fdd1aec8cec"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/subscriptions/unsubscribe Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_updating_a_post -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name32"], ["last_name", "last_name32"], ["created_at", "2015-01-07 00:41:51.334870"], ["updated_at", "2015-01-07 00:41:51.334870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name33"], ["last_name", "last_name33"], ["created_at", "2015-01-07 00:41:51.337998"], ["updated_at", "2015-01-07 00:41:51.337998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title22"], ["body", "body18"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.340135"], ["updated_at", "2015-01-07 00:41:51.340135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title22"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:41:51.351812"], ["updated_at", "2015-01-07 00:41:51.351812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-07 00:41:51.355650"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 13ms (ActiveRecord: 0.6ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_update_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name34"], ["last_name", "last_name34"], ["created_at", "2015-01-07 00:41:51.366754"], ["updated_at", "2015-01-07 00:41:51.366754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title23"], ["body", "body19"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.369304"], ["updated_at", "2015-01-07 00:41:51.369304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body19", "title"=>"title23"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_new_if_logged_in ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name35"], ["last_name", "last_name35"], ["created_at", "2015-01-07 00:41:51.380246"], ["updated_at", "2015-01-07 00:41:51.380246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (7.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (8.0ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_even_if_not_logged_in --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name36"], ["last_name", "last_name36"], ["created_at", "2015-01-07 00:41:51.398253"], ["updated_at", "2015-01-07 00:41:51.398253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title24"], ["body", "body20"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.400943"], ["updated_at", "2015-01-07 00:41:51.400943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name37"], ["last_name", "last_name37"], ["created_at", "2015-01-07 00:41:51.403589"], ["updated_at", "2015-01-07 00:41:51.403589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title25"], ["body", "body21"], ["author_id", 2], ["published_at", "2015-01-07 00:41:51.404728"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.405864"], ["updated_at", "2015-01-07 00:41:51.405864"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published' User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (4.3ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_create_post_if_not_logged_in ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name38"], ["last_name", "last_name38"], ["created_at", "2015-01-07 00:41:51.419523"], ["updated_at", "2015-01-07 00:41:51.419523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"1", "body"=>"body22", "title"=>"title26"}} Unpermitted parameter: author_id Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name39"], ["last_name", "last_name39"], ["created_at", "2015-01-07 00:41:51.431614"], ["updated_at", "2015-01-07 00:41:51.431614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name40"], ["last_name", "last_name40"], ["created_at", "2015-01-07 00:41:51.434959"], ["updated_at", "2015-01-07 00:41:51.434959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body23", "title"=>"title27"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title27"], ["body", "body23"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.442469"], ["updated_at", "2015-01-07 00:41:51.442469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_publish_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name41"], ["last_name", "last_name41"], ["created_at", "2015-01-07 00:41:51.451449"], ["updated_at", "2015-01-07 00:41:51.451449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name42"], ["last_name", "last_name42"], ["created_at", "2015-01-07 00:41:51.455021"], ["updated_at", "2015-01-07 00:41:51.455021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title28"], ["body", "body24"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.457251"], ["updated_at", "2015-01-07 00:41:51.457251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body24", "title"=>"title28"}, "publish"=>"true", "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "author_id" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-07 00:41:51.463242"], ["state", "published"], ["author_id", 1], ["updated_at", "2015-01-07 00:41:51.465598"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_edit_if_logged_in ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name43"], ["last_name", "last_name43"], ["created_at", "2015-01-07 00:41:51.474410"], ["updated_at", "2015-01-07 00:41:51.474410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name44"], ["last_name", "last_name44"], ["created_at", "2015-01-07 00:41:51.477569"], ["updated_at", "2015-01-07 00:41:51.477569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title29"], ["body", "body25"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.479625"], ["updated_at", "2015-01-07 00:41:51.479625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (6.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (7.1ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_get_index_if_logged_in -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name45"], ["last_name", "last_name45"], ["created_at", "2015-01-07 00:41:51.496936"], ["updated_at", "2015-01-07 00:41:51.496936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name46"], ["last_name", "last_name46"], ["created_at", "2015-01-07 00:41:51.500193"], ["updated_at", "2015-01-07 00:41:51.500193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title30"], ["body", "body26"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.502519"], ["updated_at", "2015-01-07 00:41:51.502519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name47"], ["last_name", "last_name47"], ["created_at", "2015-01-07 00:41:51.505268"], ["updated_at", "2015-01-07 00:41:51.505268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title31"], ["body", "body27"], ["author_id", 3], ["published_at", "2015-01-07 00:41:51.506442"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.507669"], ["updated_at", "2015-01-07 00:41:51.507669"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/index.html.erb within layouts/application (14.9ms) Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_upload_images_when_creating_post ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name48"], ["last_name", "last_name48"], ["created_at", "2015-01-07 00:41:51.532047"], ["updated_at", "2015-01-07 00:41:51.532047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name49"], ["last_name", "last_name49"], ["created_at", "2015-01-07 00:41:51.535349"], ["updated_at", "2015-01-07 00:41:51.535349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"", "title"=>"title32"}} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title32"], ["body", ""], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.548385"], ["updated_at", "2015-01-07 00:41:51.548385"]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:41:51.550245"], ["updated_at", "2015-01-07 00:41:51.550245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", ""], ["updated_at", "2015-01-07 00:41:51.554809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" ORDER BY "proclaim_posts"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.0ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? ORDER BY "proclaim_images"."id" ASC LIMIT 1 [["post_id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_destroy_post_if_not_logged_in ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name50"], ["last_name", "last_name50"], ["created_at", "2015-01-07 00:41:51.564571"], ["updated_at", "2015-01-07 00:41:51.564571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title33"], ["body", "body29"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.567053"], ["updated_at", "2015-01-07 00:41:51.567053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_logged_in -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name51"], ["last_name", "last_name51"], ["created_at", "2015-01-07 00:41:51.578630"], ["updated_at", "2015-01-07 00:41:51.578630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name52"], ["last_name", "last_name52"], ["created_at", "2015-01-07 00:41:51.581719"], ["updated_at", "2015-01-07 00:41:51.581719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title34"], ["body", "body30"], ["author_id", 2], ["published_at", "2015-01-07 00:41:51.582964"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.584273"], ["updated_at", "2015-01-07 00:41:51.584273"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name53"], ["last_name", "last_name53"], ["created_at", "2015-01-07 00:41:51.599108"], ["updated_at", "2015-01-07 00:41:51.599108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title35"], ["body", "body31"], ["author_id", 3], ["created_at", "2015-01-07 00:41:51.601422"], ["updated_at", "2015-01-07 00:41:51.601422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) 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.3ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_not_get_new_if_not_logged_in ----------------------------------------------------------------------- Processing by Proclaim::PostsController#new as HTML Redirected to http://test.host/proclaim/ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_show_post_if_not_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name54"], ["last_name", "last_name54"], ["created_at", "2015-01-07 00:41:51.622155"], ["updated_at", "2015-01-07 00:41:51.622155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title36"], ["body", "body32"], ["author_id", 1], ["published_at", "2015-01-07 00:41:51.623819"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.625171"], ["updated_at", "2015-01-07 00:41:51.625171"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.3ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name55"], ["last_name", "last_name55"], ["created_at", "2015-01-07 00:41:51.640710"], ["updated_at", "2015-01-07 00:41:51.640710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title37"], ["body", "body33"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.642968"], ["updated_at", "2015-01-07 00:41:51.642968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"2"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Completed 404 Not Found in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Proclaim::PostsControllerTest: test_should_not_get_edit_if_not_logged_in ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name56"], ["last_name", "last_name56"], ["created_at", "2015-01-07 00:41:51.648774"], ["updated_at", "2015-01-07 00:41:51.648774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title38"], ["body", "body34"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.651346"], ["updated_at", "2015-01-07 00:41:51.651346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/proclaim/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_create_published_post_if_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name57"], ["last_name", "last_name57"], ["created_at", "2015-01-07 00:41:51.661056"], ["updated_at", "2015-01-07 00:41:51.661056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name58"], ["last_name", "last_name58"], ["created_at", "2015-01-07 00:41:51.664451"], ["updated_at", "2015-01-07 00:41:51.664451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#create as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body35", "title"=>"title39"}, "publish"=>"true"} Unpermitted parameter: author_id  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title39"], ["body", "body35"], ["author_id", 1], ["published_at", "2015-01-07 00:41:51.670904"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.673082"], ["updated_at", "2015-01-07 00:41:51.673082"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_update_post_if_logged_in -------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name59"], ["last_name", "last_name59"], ["created_at", "2015-01-07 00:41:51.682639"], ["updated_at", "2015-01-07 00:41:51.682639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name60"], ["last_name", "last_name60"], ["created_at", "2015-01-07 00:41:51.685782"], ["updated_at", "2015-01-07 00:41:51.685782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title40"], ["body", "body36"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.687861"], ["updated_at", "2015-01-07 00:41:51.687861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::PostsController#update as HTML Parameters: {"post"=>{"author_id"=>"2", "body"=>"body36", "title"=>"title40"}, "id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: author_id User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Proclaim::PostsControllerTest: test_should_destroy_post_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name61"], ["last_name", "last_name61"], ["created_at", "2015-01-07 00:41:51.704211"], ["updated_at", "2015-01-07 00:41:51.704211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name62"], ["last_name", "last_name62"], ["created_at", "2015-01-07 00:41:51.707329"], ["updated_at", "2015-01-07 00:41:51.707329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title41"], ["body", "body37"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.709426"], ["updated_at", "2015-01-07 00:41:51.709426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts" Processing by Proclaim::PostsController#destroy as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."post_id" = ? [["post_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/proclaim/posts Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_posts"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_verify_publication_can't_be_taken_back ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name63"], ["last_name", "last_name63"], ["created_at", "2015-01-07 00:41:51.727137"], ["updated_at", "2015-01-07 00:41:51.727137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title42"], ["body", "body38"], ["author_id", 1], ["published_at", "2015-01-07 00:41:51.728970"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.730382"], ["updated_at", "2015-01-07 00:41:51.730382"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::PostTest: test_ensure_author_is_required --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Proclaim::PostTest: test_ensure_title_is_required -------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name64"], ["last_name", "last_name64"], ["created_at", "2015-01-07 00:41:51.740144"], ["updated_at", "2015-01-07 00:41:51.740144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Proclaim::PostTest: test_ensure_publication_date_when_published ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name65"], ["last_name", "last_name65"], ["created_at", "2015-01-07 00:41:51.744856"], ["updated_at", "2015-01-07 00:41:51.744856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title45"], ["body", "body42"], ["author_id", 1], ["published_at", "2015-01-07 00:41:51.746342"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.747530"], ["updated_at", "2015-01-07 00:41:51.747530"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ Proclaim::PostTest: test_verify_publication_date_requirement ------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name66"], ["last_name", "last_name66"], ["created_at", "2015-01-07 00:41:51.751414"], ["updated_at", "2015-01-07 00:41:51.751414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title46"], ["body", "body43"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.753788"], ["updated_at", "2015-01-07 00:41:51.753788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name67"], ["last_name", "last_name67"], ["created_at", "2015-01-07 00:41:51.756756"], ["updated_at", "2015-01-07 00:41:51.756756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name68"], ["last_name", "last_name68"], ["created_at", "2015-01-07 00:41:51.760893"], ["updated_at", "2015-01-07 00:41:51.760893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name69"], ["last_name", "last_name69"], ["created_at", "2015-01-07 00:41:51.764732"], ["updated_at", "2015-01-07 00:41:51.764732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title49"], ["body", "body46"], ["author_id", 4], ["published_at", "2015-01-07 00:41:51.765824"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.767027"], ["updated_at", "2015-01-07 00:41:51.767027"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Proclaim::PostTest: test_verify_excerpt ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name70"], ["last_name", "last_name70"], ["created_at", "2015-01-07 00:41:51.770730"], ["updated_at", "2015-01-07 00:41:51.770730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name71"], ["last_name", "last_name71"], ["created_at", "2015-01-07 00:41:51.773307"], ["updated_at", "2015-01-07 00:41:51.773307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name72"], ["last_name", "last_name72"], ["created_at", "2015-01-07 00:41:51.776081"], ["updated_at", "2015-01-07 00:41:51.776081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name73"], ["last_name", "last_name73"], ["created_at", "2015-01-07 00:41:51.778219"], ["updated_at", "2015-01-07 00:41:51.778219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name74"], ["last_name", "last_name74"], ["created_at", "2015-01-07 00:41:51.780399"], ["updated_at", "2015-01-07 00:41:51.780399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- Proclaim::PostTest: test_ensure_factory_is_good -----------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name75"], ["last_name", "last_name75"], ["created_at", "2015-01-07 00:41:51.783188"], ["updated_at", "2015-01-07 00:41:51.783188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title55"], ["body", "body47"], ["author_id", 1], ["created_at", "2015-01-07 00:41:51.785463"], ["updated_at", "2015-01-07 00:41:51.785463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Proclaim::PostTest: test_ensure_body_is_required ------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name76"], ["last_name", "last_name76"], ["created_at", "2015-01-07 00:41:51.789165"], ["updated_at", "2015-01-07 00:41:51.789165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name77"], ["last_name", "last_name77"], ["created_at", "2015-01-07 00:41:51.793074"], ["updated_at", "2015-01-07 00:41:51.793074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name78"], ["last_name", "last_name78"], ["created_at", "2015-01-07 00:41:51.796151"], ["updated_at", "2015-01-07 00:41:51.796151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name79"], ["last_name", "last_name79"], ["created_at", "2015-01-07 00:41:51.799792"], ["updated_at", "2015-01-07 00:41:51.799792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name80"], ["last_name", "last_name80"], ["created_at", "2015-01-07 00:41:51.803159"], ["updated_at", "2015-01-07 00:41:51.803159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- PostPolicyTest: test_post_create --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name81"], ["last_name", "last_name81"], ["created_at", "2015-01-07 00:41:51.808010"], ["updated_at", "2015-01-07 00:41:51.808010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name82"], ["last_name", "last_name82"], ["created_at", "2015-01-07 00:41:51.810194"], ["updated_at", "2015-01-07 00:41:51.810194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title61"], ["body", "body48"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.812138"], ["updated_at", "2015-01-07 00:41:51.812138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- PostPolicyTest: test_post_update --------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name83"], ["last_name", "last_name83"], ["created_at", "2015-01-07 00:41:51.814813"], ["updated_at", "2015-01-07 00:41:51.814813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name84"], ["last_name", "last_name84"], ["created_at", "2015-01-07 00:41:51.817240"], ["updated_at", "2015-01-07 00:41:51.817240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title62"], ["body", "body49"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.819585"], ["updated_at", "2015-01-07 00:41:51.819585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name85"], ["last_name", "last_name85"], ["created_at", "2015-01-07 00:41:51.822358"], ["updated_at", "2015-01-07 00:41:51.822358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title63"], ["body", "body50"], ["author_id", 3], ["published_at", "2015-01-07 00:41:51.823506"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.824737"], ["updated_at", "2015-01-07 00:41:51.824737"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------- PostPolicyTest: test_post_destroy ---------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name86"], ["last_name", "last_name86"], ["created_at", "2015-01-07 00:41:51.827767"], ["updated_at", "2015-01-07 00:41:51.827767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name87"], ["last_name", "last_name87"], ["created_at", "2015-01-07 00:41:51.830021"], ["updated_at", "2015-01-07 00:41:51.830021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title64"], ["body", "body51"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.831942"], ["updated_at", "2015-01-07 00:41:51.831942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name88"], ["last_name", "last_name88"], ["created_at", "2015-01-07 00:41:51.834444"], ["updated_at", "2015-01-07 00:41:51.834444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title65"], ["body", "body52"], ["author_id", 3], ["published_at", "2015-01-07 00:41:51.835579"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.836876"], ["updated_at", "2015-01-07 00:41:51.836876"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------- PostPolicyTest: test_post_scope -------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name89"], ["last_name", "last_name89"], ["created_at", "2015-01-07 00:41:51.840213"], ["updated_at", "2015-01-07 00:41:51.840213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name90"], ["last_name", "last_name90"], ["created_at", "2015-01-07 00:41:51.842402"], ["updated_at", "2015-01-07 00:41:51.842402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title66"], ["body", "body53"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.844319"], ["updated_at", "2015-01-07 00:41:51.844319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name91"], ["last_name", "last_name91"], ["created_at", "2015-01-07 00:41:51.846798"], ["updated_at", "2015-01-07 00:41:51.846798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title67"], ["body", "body54"], ["author_id", 3], ["published_at", "2015-01-07 00:41:51.848143"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.849497"], ["updated_at", "2015-01-07 00:41:51.849497"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."state" = 'published'  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PostPolicyTest: test_post_show ------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name92"], ["last_name", "last_name92"], ["created_at", "2015-01-07 00:41:51.854614"], ["updated_at", "2015-01-07 00:41:51.854614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name93"], ["last_name", "last_name93"], ["created_at", "2015-01-07 00:41:51.856862"], ["updated_at", "2015-01-07 00:41:51.856862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title68"], ["body", "body55"], ["author_id", 2], ["created_at", "2015-01-07 00:41:51.858815"], ["updated_at", "2015-01-07 00:41:51.858815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name94"], ["last_name", "last_name94"], ["created_at", "2015-01-07 00:41:51.861229"], ["updated_at", "2015-01-07 00:41:51.861229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title69"], ["body", "body56"], ["author_id", 3], ["published_at", "2015-01-07 00:41:51.862340"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.863482"], ["updated_at", "2015-01-07 00:41:51.863482"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_not_send_new_comment_notification_email_containing_own_comment ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name95"], ["last_name", "last_name95"], ["created_at", "2015-01-07 00:41:51.954089"], ["updated_at", "2015-01-07 00:41:51.954089"]]  (25.6ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title70"], ["body", "body57"], ["author_id", 1], ["published_at", "2015-01-07 00:41:51.982985"], ["state", "published"], ["created_at", "2015-01-07 00:41:51.986438"], ["updated_at", "2015-01-07 00:41:51.986438"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (17.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:41:55 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.6ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (11.8ms) Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 1.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-01-06 19:41:55 -0500 Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-06 19:41:55 -0500  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:41:57 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:41:57.187311"], ["updated_at", "2015-01-07 00:41:57.187311"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:41:57.210204"], ["updated_at", "2015-01-07 00:41:57.210204"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8d8a78f6-09a7-4f74-922d-d54c07461f16) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] 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] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.1ms [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Sent mail to example@example.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Date: Tue, 06 Jan 2015 19:41:57 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80d53c077_2231183b46c67093@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80d53b6b8_2231183b46c669d9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80d53b6b8_2231183b46c669d9 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_54ac80d53b6b8_2231183b46c669d9 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_54ac80d53b6b8_2231183b46c669d9-- [ActiveJob] [ActionMailer::DeliveryJob] [8d8a78f6-09a7-4f74-922d-d54c07461f16] Performed ActionMailer::DeliveryJob from Inline(mailers) in 34.4ms  (49.5ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (9.3ms) Completed 200 OK in 144ms (Views: 0.5ms | ActiveRecord: 53.2ms) Started GET "/assets/ajax_loader.gif" for 127.0.0.1 at 2015-01-06 19:41:57 -0500  (0.5ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (48.4ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (30.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (42.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (33.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (51.8ms) DELETE FROM sqlite_sequence where name = 'users';  (39.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (47.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------ PostSubscriptionTest: test_catch_lack_of_email_address ------------------------------------------------------  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name96"], ["last_name", "last_name96"], ["created_at", "2015-01-07 00:41:57.841236"], ["updated_at", "2015-01-07 00:41:57.841236"]]  (72.2ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title71"], ["body", "body58"], ["author_id", 1], ["published_at", "2015-01-07 00:41:57.916369"], ["state", "published"], ["created_at", "2015-01-07 00:41:57.921425"], ["updated_at", "2015-01-07 00:41:57.921425"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.6ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:41:57 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.2ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:41: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"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:41:58.657218"], ["updated_at", "2015-01-07 00:41:58.657218"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 20ms (Views: 0.2ms | ActiveRecord: 2.5ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (24.0ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (20.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (15.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (21.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (22.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.4ms) DELETE FROM sqlite_sequence where name = 'users';  (22.8ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (22.6ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_reply_with_subscription_if_spammy ----------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name97"], ["last_name", "last_name97"], ["created_at", "2015-01-07 00:41:58.903816"], ["updated_at", "2015-01-07 00:41:58.903816"]]  (31.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title72"], ["body", "body59"], ["author_id", 1], ["published_at", "2015-01-07 00:41:58.937976"], ["state", "published"], ["created_at", "2015-01-07 00:41:58.939757"], ["updated_at", "2015-01-07 00:41:58.939757"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (41.7ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author1"], ["body", "body1"], ["post_id", 1], ["created_at", "2015-01-07 00:41:58.986144"], ["updated_at", "2015-01-07 00:41:58.986144"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (38.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:41:59 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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 (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (15.4ms) Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:41: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"=>"wrong answer", "solution"=>"2"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (39.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (27.6ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.3ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.8ms) DELETE FROM sqlite_sequence where name = 'users';  (38.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostSubscriptionTest: test_catch_bad_email_address --------------------------------------------------  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name98"], ["last_name", "last_name98"], ["created_at", "2015-01-07 00:42:00.186737"], ["updated_at", "2015-01-07 00:42:00.186737"]]  (31.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title73"], ["body", "body60"], ["author_id", 1], ["published_at", "2015-01-07 00:42:00.224163"], ["state", "published"], ["created_at", "2015-01-07 00:42:00.228229"], ["updated_at", "2015-01-07 00:42:00.228229"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (37.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:00 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.8ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42: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"=>"4", "solution"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"bad_email"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:42:01.023497"], ["updated_at", "2015-01-07 00:42:01.023497"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.2ms) rollback transaction Completed 422 Unprocessable Entity in 17ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (46.3ms) DELETE FROM "proclaim_posts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.4ms) DELETE FROM "proclaim_comments";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.7ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.3ms) DELETE FROM sqlite_sequence where name = 'users';  (35.0ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (28.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_not_create_new_root_comment_with_subscription_if_spammy -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name99"], ["last_name", "last_name99"], ["created_at", "2015-01-07 00:42:01.357274"], ["updated_at", "2015-01-07 00:42:01.357274"]]  (28.4ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title74"], ["body", "body61"], ["author_id", 1], ["published_at", "2015-01-07 00:42:01.388360"], ["state", "published"], ["created_at", "2015-01-07 00:42:01.392297"], ["updated_at", "2015-01-07 00:42:01.392297"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (31.9ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author2"], ["body", "body2"], ["post_id", 1], ["created_at", "2015-01-07 00:42:01.429848"], ["updated_at", "2015-01-07 00:42:01.429848"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.8ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (33.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:01 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.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/posts/show.html.erb within layouts/application (15.4ms) Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42: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"=>"wrong answer", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (43.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (28.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (26.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (44.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (42.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.1ms) DELETE FROM sqlite_sequence where name = 'users';  (41.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (37.2ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_not_logged_in ----------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name100"], ["last_name", "last_name100"], ["created_at", "2015-01-07 00:42:02.742798"], ["updated_at", "2015-01-07 00:42:02.742798"]]  (39.8ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title75"], ["body", "body62"], ["author_id", 1], ["published_at", "2015-01-07 00:42:02.788327"], ["state", "published"], ["created_at", "2015-01-07 00:42:02.792838"], ["updated_at", "2015-01-07 00:42:02.792838"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:02 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.9ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:03 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:42:03.598968"], ["updated_at", "2015-01-07 00:42:03.598968"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:03.609460"], ["updated_at", "2015-01-07 00:42:03.609460"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e459a4ea-272d-4b60-ba31-35a30c703303) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] 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] [e459a4ea-272d-4b60-ba31-35a30c703303] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.6ms [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] Sent mail to example@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] Date: Tue, 06 Jan 2015 19:42:03 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80db9e262_2231183b46c672f5@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80db9d8e1_2231183b46c67170"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80db9d8e1_2231183b46c67170 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_54ac80db9d8e1_2231183b46c67170 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_54ac80db9d8e1_2231183b46c67170-- [ActiveJob] [ActionMailer::DeliveryJob] [e459a4ea-272d-4b60-ba31-35a30c703303] Performed ActionMailer::DeliveryJob from Inline(mailers) in 35.37ms  (37.6ms) commit transaction Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (7.1ms) Completed 200 OK in 108ms (Views: 0.5ms | ActiveRecord: 40.4ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (43.2ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (39.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.5ms) DELETE FROM sqlite_sequence where name = 'users';  (41.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.7ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------------------------------------------ PostSubscriptionTest: test_should_be_able_to_create_new_root_comment_with_subscription_while_logged_in ------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name101"], ["last_name", "last_name101"], ["created_at", "2015-01-07 00:42:04.136854"], ["updated_at", "2015-01-07 00:42:04.136854"]]  (34.7ms) commit transaction  (0.3ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name102"], ["last_name", "last_name102"], ["created_at", "2015-01-07 00:42:04.180608"], ["updated_at", "2015-01-07 00:42:04.180608"]]  (33.4ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title76"], ["body", "body63"], ["author_id", 2], ["published_at", "2015-01-07 00:42:04.218523"], ["state", "published"], ["created_at", "2015-01-07 00:42:04.220359"], ["updated_at", "2015-01-07 00:42:04.220359"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (34.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:04 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.0ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:05 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"Comment Body", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:42:05.220203"], ["updated_at", "2015-01-07 00:42:05.220203"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:05.230529"], ["updated_at", "2015-01-07 00:42:05.230529"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 46d0a511-1935-45ea-ae10-f71c31aa0031) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] 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] [46d0a511-1935-45ea-ae10-f71c31aa0031] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 30.8ms [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] Sent mail to example@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] Date: Tue, 06 Jan 2015 19:42:05 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80dd41a4b_2231183b46c67414@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80dd4119d_2231183b46c673fa"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80dd4119d_2231183b46c673fa 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_54ac80dd4119d_2231183b46c673fa 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_54ac80dd4119d_2231183b46c673fa-- [ActiveJob] [ActionMailer::DeliveryJob] [46d0a511-1935-45ea-ae10-f71c31aa0031] Performed ActionMailer::DeliveryJob from Inline(mailers) in 35.21ms  (28.3ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (13.9ms) Completed 200 OK in 103ms (Views: 0.7ms | ActiveRecord: 30.8ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (21.0ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (20.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (20.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (27.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (15.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.9ms) DELETE FROM sqlite_sequence where name = 'users';  (34.3ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (31.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (26.4ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_logged_in -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name103"], ["last_name", "last_name103"], ["created_at", "2015-01-07 00:42:05.601451"], ["updated_at", "2015-01-07 00:42:05.601451"]]  (30.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name104"], ["last_name", "last_name104"], ["created_at", "2015-01-07 00:42:05.639370"], ["updated_at", "2015-01-07 00:42:05.639370"]]  (21.2ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title77"], ["body", "body64"], ["author_id", 2], ["published_at", "2015-01-07 00:42:05.663078"], ["state", "published"], ["created_at", "2015-01-07 00:42:05.665467"], ["updated_at", "2015-01-07 00:42:05.665467"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.4ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author3"], ["body", "body3"], ["post_id", 1], ["created_at", "2015-01-07 00:42:05.701157"], ["updated_at", "2015-01-07 00:42:05.701157"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (23.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:05 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (23.5ms) Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:06 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:06.587222"], ["updated_at", "2015-01-07 00:42:06.587222"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.8ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:06.598458"], ["updated_at", "2015-01-07 00:42:06.598458"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 696705bd-9b0b-4cb9-9f35-857905b8fed8) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] 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] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 76.8ms [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Sent mail to example@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Date: Tue, 06 Jan 2015 19:42:06 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80dea6f26_2231183b46c6768c@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80dea641e_2231183b46c675eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80dea641e_2231183b46c675eb 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_54ac80dea641e_2231183b46c675eb 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_54ac80dea641e_2231183b46c675eb-- [ActiveJob] [ActionMailer::DeliveryJob] [696705bd-9b0b-4cb9-9f35-857905b8fed8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 82.74ms  (29.3ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.2ms) Completed 200 OK in 159ms (Views: 0.7ms | ActiveRecord: 33.2ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (31.9ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.4ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.8ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.4ms) DELETE FROM sqlite_sequence where name = 'users';  (38.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (36.8ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------------------------------------------------------------- PostSubscriptionTest: test_should_be_able_to_create_new_reply_with_subscription_while_not_logged_in ---------------------------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name105"], ["last_name", "last_name105"], ["created_at", "2015-01-07 00:42:07.174329"], ["updated_at", "2015-01-07 00:42:07.174329"]]  (34.4ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title78"], ["body", "body65"], ["author_id", 1], ["published_at", "2015-01-07 00:42:07.212668"], ["state", "published"], ["created_at", "2015-01-07 00:42:07.217200"], ["updated_at", "2015-01-07 00:42:07.217200"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.0ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author4"], ["body", "body4"], ["post_id", 1], ["created_at", "2015-01-07 00:42:07.265833"], ["updated_at", "2015-01-07 00:42:07.265833"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.7ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:07 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.3ms) Completed 200 OK in 17ms (Views: 13.4ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:08 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author", "body"=>"Reply Body", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "subscription"=>{"subscribe"=>"true", "email"=>"example@example.com"}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body"], ["author", "Reply Author"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:08.130942"], ["updated_at", "2015-01-07 00:42:08.130942"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "example@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:08.140316"], ["updated_at", "2015-01-07 00:42:08.140316"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 531510a0-fa22-4772-8d96-0a0897a77093) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] 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] [531510a0-fa22-4772-8d96-0a0897a77093] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 32.0ms [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] Sent mail to example@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80e02bace_2231183b46c6786a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e02ae17_2231183b46c677c6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e02ae17_2231183b46c677c6 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_54ac80e02ae17_2231183b46c677c6 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_54ac80e02ae17_2231183b46c677c6-- [ActiveJob] [ActionMailer::DeliveryJob] [531510a0-fa22-4772-8d96-0a0897a77093] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.25ms  (24.2ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.6ms) Completed 200 OK in 99ms (Views: 0.5ms | ActiveRecord: 27.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? ORDER BY "proclaim_subscriptions"."id" ASC LIMIT 1 [["post_id", 1]]  (35.0ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.4ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.0ms) DELETE FROM sqlite_sequence where name = 'users';  (38.7ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (49.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_require_valid_post_or_none_at_all -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email19@example.com') AND "proclaim_subscriptions"."post_id" = 12345) LIMIT 1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name106"], ["last_name", "last_name106"], ["created_at", "2015-01-07 00:42:08.643629"], ["updated_at", "2015-01-07 00:42:08.643629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title79"], ["body", "body66"], ["author_id", 1], ["published_at", "2015-01-07 00:42:08.645300"], ["state", "published"], ["created_at", "2015-01-07 00:42:08.646651"], ["updated_at", "2015-01-07 00:42:08.646651"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email20@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email20@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:08.650380"], ["updated_at", "2015-01-07 00:42:08.650380"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6a873618-8aa3-476e-afad-68a60db41703) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] 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] [6a873618-8aa3-476e-afad-68a60db41703] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.7ms [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] Sent mail to email20@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email20@example.com Message-ID: <54ac80e0a6f59_22313df3386806f@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0a669d_22313df338679a6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0a669d_22313df338679a6 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_54ac80e0a669d_22313df338679a6 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_54ac80e0a669d_22313df338679a6-- [ActiveJob] [ActionMailer::DeliveryJob] [6a873618-8aa3-476e-afad-68a60db41703] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.7ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email21@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email21@example.com"], ["created_at", "2015-01-07 00:42:08.688795"], ["updated_at", "2015-01-07 00:42:08.688795"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1f119adf-b0d9-4d22-9268-6dd95b1153c3) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] 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] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.3ms [ActiveJob] [ActionMailer::DeliveryJob] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] Sent mail to email21@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email21@example.com Message-ID: <54ac80e0afb92_22313df33868240@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0af320_22313df33868117"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0af320_22313df33868117 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_54ac80e0af320_22313df33868117 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_54ac80e0af320_22313df33868117-- [ActiveJob] [ActionMailer::DeliveryJob] [1f119adf-b0d9-4d22-9268-6dd95b1153c3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.0ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Proclaim::SubscriptionTest: test_subscriptions_should_be_unique ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-01-07 00:42:08.724964"], ["updated_at", "2015-01-07 00:42:08.724964"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c2a97090-a7e6-47ec-ac45-7cf373f60fae) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] 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] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] Sent mail to foo@bar.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: foo@bar.com Message-ID: <54ac80e0b8ec1_22313df338684bb@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0b85c2_22313df33868332"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0b85c2_22313df33868332 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_54ac80e0b85c2_22313df33868332 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_54ac80e0b85c2_22313df33868332-- [ActiveJob] [ActionMailer::DeliveryJob] [c2a97090-a7e6-47ec-ac45-7cf373f60fae] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.38ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name107"], ["last_name", "last_name107"], ["created_at", "2015-01-07 00:42:08.764552"], ["updated_at", "2015-01-07 00:42:08.764552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title80"], ["body", "body67"], ["author_id", 1], ["created_at", "2015-01-07 00:42:08.766997"], ["updated_at", "2015-01-07 00:42:08.766997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "foo@bar.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:08.769756"], ["updated_at", "2015-01-07 00:42:08.769756"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 01d50de1-2392-4be6-b2b8-6184cd2e4b8a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] 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] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 28.1ms [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Sent mail to foo@bar.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: foo@bar.com Message-ID: <54ac80e0c3dd4_22313df3386862e@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0c3513_22313df33868588"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0c3513_22313df33868588 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_54ac80e0c3513_22313df33868588 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_54ac80e0c3513_22313df33868588-- [ActiveJob] [ActionMailer::DeliveryJob] [01d50de1-2392-4be6-b2b8-6184cd2e4b8a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.86ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('foo@bar.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_should_not_save_without_valid_email_address ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE ("proclaim_subscriptions"."email" IS NULL AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('blah') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Proclaim::SubscriptionTest: test_token_should_be_able_to_identify_subscriptions -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email22@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email22@example.com"], ["created_at", "2015-01-07 00:42:08.813647"], ["updated_at", "2015-01-07 00:42:08.813647"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c81a352a-d322-4bc6-a622-130667a49389) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c81a352a-d322-4bc6-a622-130667a49389] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c81a352a-d322-4bc6-a622-130667a49389] 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] [c81a352a-d322-4bc6-a622-130667a49389] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.0ms [ActiveJob] [ActionMailer::DeliveryJob] [c81a352a-d322-4bc6-a622-130667a49389] Sent mail to email22@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c81a352a-d322-4bc6-a622-130667a49389] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email22@example.com Message-ID: <54ac80e0ce758_22313df33868812@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0cde59_22313df33868791"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0cde59_22313df33868791 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_54ac80e0cde59_22313df33868791 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_54ac80e0cde59_22313df33868791-- [ActiveJob] [ActionMailer::DeliveryJob] [c81a352a-d322-4bc6-a622-130667a49389] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.82ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email23@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email23@example.com"], ["created_at", "2015-01-07 00:42:08.849913"], ["updated_at", "2015-01-07 00:42:08.849913"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c62d3d9f-429a-486d-9cd3-080c3af8f2c0) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [ActionMailer::DeliveryJob] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/2 [ActiveJob] [ActionMailer::DeliveryJob] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] 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] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 24.2ms [ActiveJob] [ActionMailer::DeliveryJob] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] Sent mail to email23@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email23@example.com Message-ID: <54ac80e0d673c_22313df3386904@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0d5f08_22313df33868954"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0d5f08_22313df33868954 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_54ac80e0d5f08_22313df33868954 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_54ac80e0d5f08_22313df33868954-- [ActiveJob] [ActionMailer::DeliveryJob] [c62d3d9f-429a-486d-9cd3-080c3af8f2c0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.78ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_when_post_is_updated -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email24@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email24@example.com"], ["created_at", "2015-01-07 00:42:08.885349"], ["updated_at", "2015-01-07 00:42:08.885349"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ad417164-f7f2-4e4a-93f4-c2e91219ac75) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] 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] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.5ms [ActiveJob] [ActionMailer::DeliveryJob] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] Sent mail to email24@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email24@example.com Message-ID: <54ac80e0df958_22313df338692c3@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0df049_22313df33869156"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0df049_22313df33869156 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_54ac80e0df049_22313df33869156 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_54ac80e0df049_22313df33869156-- [ActiveJob] [ActionMailer::DeliveryJob] [ad417164-f7f2-4e4a-93f4-c2e91219ac75] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.13ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name108"], ["last_name", "last_name108"], ["created_at", "2015-01-07 00:42:08.919719"], ["updated_at", "2015-01-07 00:42:08.919719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title81"], ["body", "body68"], ["author_id", 1], ["published_at", "2015-01-07 00:42:08.921274"], ["state", "published"], ["created_at", "2015-01-07 00:42:08.922563"], ["updated_at", "2015-01-07 00:42:08.922563"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7116f83e-b491-492e-9cab-e5ded4220e39) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] 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] [7116f83e-b491-492e-9cab-e5ded4220e39] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 26.5ms [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] Sent mail to email24@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] Date: Tue, 06 Jan 2015 19:42:08 -0500 From: from@example.com To: email24@example.com Message-ID: <54ac80e0e92ab_22313df33869432@Pandora.mail> Subject: New Post: title81 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e0e8a6a_22313df33869326"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e0e8a6a_22313df33869326 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title81 ******* body68 Written on January 07, 2015 at 12:42 AM UTC by first_name108 last_name108 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_54ac80e0e8a6a_22313df33869326 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title81

body68
----==_mimepart_54ac80e0e8a6a_22313df33869326-- [ActiveJob] [ActionMailer::DeliveryJob] [7116f83e-b491-492e-9cab-e5ded4220e39] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.07ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_post_subscriber_when_new_comment_is_made -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name109"], ["last_name", "last_name109"], ["created_at", "2015-01-07 00:42:08.960766"], ["updated_at", "2015-01-07 00:42:08.960766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title82"], ["body", "body69"], ["author_id", 1], ["published_at", "2015-01-07 00:42:08.962411"], ["state", "published"], ["created_at", "2015-01-07 00:42:08.963642"], ["updated_at", "2015-01-07 00:42:08.963642"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email25@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email25@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:08.967364"], ["updated_at", "2015-01-07 00:42:08.967364"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9bd32d17-5db5-472e-936b-2af6d62f95f2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] 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] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 33.5ms [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Sent mail to email25@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email25@example.com Message-ID: <54ac80e135e8_22313df338696d7@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e12cfb_22313df338695df"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e12cfb_22313df338695df 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_54ac80e12cfb_22313df338695df 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_54ac80e12cfb_22313df338695df-- [ActiveJob] [ActionMailer::DeliveryJob] [9bd32d17-5db5-472e-936b-2af6d62f95f2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 37.45ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author5"], ["body", "body5"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.018214"], ["updated_at", "2015-01-07 00:42:09.018214"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] 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] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] 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] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 30.4ms [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Sent mail to email25@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email25@example.com Message-ID: <54ac80e1d512_22313df338698aa@Pandora.mail> Subject: New Comment On "title82" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1cc75_22313df338697ab"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1cc75_22313df338697ab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body5 Written on January 07, 2015 at 12:42 AM UTC by author5 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_54ac80e1cc75_22313df338697ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body5
----==_mimepart_54ac80e1cc75_22313df338697ab-- [ActiveJob] [ActionMailer::DeliveryJob] [e7a0dc63-0ce8-4e89-a3cf-51209b2f4a0c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.99ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_welcome_to_post_subscriber_upon_subscription -------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name110"], ["last_name", "last_name110"], ["created_at", "2015-01-07 00:42:09.063242"], ["updated_at", "2015-01-07 00:42:09.063242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title83"], ["body", "body70"], ["author_id", 1], ["published_at", "2015-01-07 00:42:09.064844"], ["state", "published"], ["created_at", "2015-01-07 00:42:09.066134"], ["updated_at", "2015-01-07 00:42:09.066134"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email26@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email26@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.069912"], ["updated_at", "2015-01-07 00:42:09.069912"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] 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] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.7ms [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Sent mail to email26@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email26@example.com Message-ID: <54ac80e119052_22313df338700d4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1187b4_22313df338699f0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1187b4_22313df338699f0 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_54ac80e1187b4_22313df338699f0 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_54ac80e1187b4_22313df338699f0-- [ActiveJob] [ActionMailer::DeliveryJob] [fce8b0e2-24f0-49c8-96b2-72c7c8e97ae9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.48ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_post_subscriber_when_old_comment_is_edited ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name111"], ["last_name", "last_name111"], ["created_at", "2015-01-07 00:42:09.108258"], ["updated_at", "2015-01-07 00:42:09.108258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title84"], ["body", "body71"], ["author_id", 1], ["published_at", "2015-01-07 00:42:09.109914"], ["state", "published"], ["created_at", "2015-01-07 00:42:09.111168"], ["updated_at", "2015-01-07 00:42:09.111168"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email27@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email27@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.114989"], ["updated_at", "2015-01-07 00:42:09.114989"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ac610592-7745-494c-9267-b43afb02a318) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] 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] [ac610592-7745-494c-9267-b43afb02a318] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.7ms [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] Sent mail to email27@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email27@example.com Message-ID: <54ac80e1240b1_22313df338702b6@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e12382e_22313df338701b6"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e12382e_22313df338701b6 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_54ac80e12382e_22313df338701b6 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_54ac80e12382e_22313df338701b6-- [ActiveJob] [ActionMailer::DeliveryJob] [ac610592-7745-494c-9267-b43afb02a318] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.37ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author6"], ["body", "body6"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.151773"], ["updated_at", "2015-01-07 00:42:09.151773"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7a6bb902-5cf2-4ff5-b242-7e64acd34ae9) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_comment_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Comment/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] 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] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] 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] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 24.0ms [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Sent mail to email27@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email27@example.com Message-ID: <54ac80e12c736_22313df33870420@Pandora.mail> Subject: New Comment On "title84" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e12beaf_22313df33870348"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e12beaf_22313df33870348 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit body6 Written on January 07, 2015 at 12:42 AM UTC by author6 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_54ac80e12beaf_22313df33870348 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
body6
----==_mimepart_54ac80e12beaf_22313df33870348-- [ActiveJob] [ActionMailer::DeliveryJob] [7a6bb902-5cf2-4ff5-b242-7e64acd34ae9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.73ms SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_comments" SET "author" = ?, "body" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["author", "Edit Author"], ["body", "Edit Body"], ["updated_at", "2015-01-07 00:42:09.188615"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_email_notification_to_blog_subscriber_when_post_is_published -----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email28@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email28@example.com"], ["created_at", "2015-01-07 00:42:09.192967"], ["updated_at", "2015-01-07 00:42:09.192967"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 97ec0050-7da0-4bc6-87fd-0e1e81bd0499) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] 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] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.6ms [ActiveJob] [ActionMailer::DeliveryJob] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] Sent mail to email28@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email28@example.com Message-ID: <54ac80e13708f_22313df338706e0@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1367b6_22313df33870543"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1367b6_22313df33870543 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_54ac80e1367b6_22313df33870543 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_54ac80e1367b6_22313df33870543-- [ActiveJob] [ActionMailer::DeliveryJob] [97ec0050-7da0-4bc6-87fd-0e1e81bd0499] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.4ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name112"], ["last_name", "last_name112"], ["created_at", "2015-01-07 00:42:09.229861"], ["updated_at", "2015-01-07 00:42:09.229861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title85"], ["body", "body72"], ["author_id", 1], ["published_at", "2015-01-07 00:42:09.231521"], ["state", "published"], ["created_at", "2015-01-07 00:42:09.232961"], ["updated_at", "2015-01-07 00:42:09.232961"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 770b5c2f-d0df-4905-9b11-b11710c21733) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [770b5c2f-d0df-4905-9b11-b11710c21733] 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] [770b5c2f-d0df-4905-9b11-b11710c21733] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [770b5c2f-d0df-4905-9b11-b11710c21733] 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] [770b5c2f-d0df-4905-9b11-b11710c21733] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.0ms [ActiveJob] [ActionMailer::DeliveryJob] [770b5c2f-d0df-4905-9b11-b11710c21733] Sent mail to email28@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [770b5c2f-d0df-4905-9b11-b11710c21733] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email28@example.com Message-ID: <54ac80e140489_22313df338708ee@Pandora.mail> Subject: New Post: title85 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e13fc00_22313df338707a"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e13fc00_22313df338707a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title85 ******* body72 Written on January 07, 2015 at 12:42 AM UTC by first_name112 last_name112 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_54ac80e13fc00_22313df338707a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title85

body72
----==_mimepart_54ac80e13fc00_22313df338707a-- [ActiveJob] [ActionMailer::DeliveryJob] [770b5c2f-d0df-4905-9b11-b11710c21733] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.73ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------- SubscriptionEmailTest: test_should_not_email_notification_to_blog_subscriber_if_post_is_not_published -----------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email29@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email29@example.com"], ["created_at", "2015-01-07 00:42:09.269606"], ["updated_at", "2015-01-07 00:42:09.269606"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] 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] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.9ms [ActiveJob] [ActionMailer::DeliveryJob] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] Sent mail to email29@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email29@example.com Message-ID: <54ac80e149dcb_22313df338710e8@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e14953f_22313df33870916"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e14953f_22313df33870916 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_54ac80e14953f_22313df33870916 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_54ac80e14953f_22313df33870916-- [ActiveJob] [ActionMailer::DeliveryJob] [2e499ae0-ddf1-4c33-ae1d-d4da09d9c3c4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.61ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name113"], ["last_name", "last_name113"], ["created_at", "2015-01-07 00:42:09.306656"], ["updated_at", "2015-01-07 00:42:09.306656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title86"], ["body", "body73"], ["author_id", 1], ["created_at", "2015-01-07 00:42:09.309153"], ["updated_at", "2015-01-07 00:42:09.309153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["published_at", "2015-01-07 00:42:09.310733"], ["state", "published"], ["updated_at", "2015-01-07 00:42:09.311930"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9b77df23-9d4b-4b23-b3ca-34ffab1925b2) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] 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] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] 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] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 24.2ms [ActiveJob] [ActionMailer::DeliveryJob] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] Sent mail to email29@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email29@example.com Message-ID: <54ac80e15378d_22313df33871265@Pandora.mail> Subject: New Post: title86 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e152ea5_22313df33871135"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e152ea5_22313df33871135 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title86 ******* body73 Written on January 07, 2015 at 12:42 AM UTC by first_name113 last_name113 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_54ac80e152ea5_22313df33871135 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title86

body73
----==_mimepart_54ac80e152ea5_22313df33871135-- [ActiveJob] [ActionMailer::DeliveryJob] [9b77df23-9d4b-4b23-b3ca-34ffab1925b2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.8ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_body_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name114"], ["last_name", "last_name114"], ["created_at", "2015-01-07 00:42:09.348990"], ["updated_at", "2015-01-07 00:42:09.348990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title87"], ["body", "body74"], ["author_id", 1], ["created_at", "2015-01-07 00:42:09.351768"], ["updated_at", "2015-01-07 00:42:09.351768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- Proclaim::CommentTest: test_ensure_factory_is_good --------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name115"], ["last_name", "last_name115"], ["created_at", "2015-01-07 00:42:09.357067"], ["updated_at", "2015-01-07 00:42:09.357067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title88"], ["body", "body75"], ["author_id", 1], ["created_at", "2015-01-07 00:42:09.359561"], ["updated_at", "2015-01-07 00:42:09.359561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author8"], ["body", "body7"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.361860"], ["updated_at", "2015-01-07 00:42:09.361860"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Proclaim::CommentTest: test_ensure_post_is_required ---------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 12345]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_images_in_new_post_notification_email_should_have_absolute_URLs ------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email30@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email30@example.com"], ["created_at", "2015-01-07 00:42:09.374476"], ["updated_at", "2015-01-07 00:42:09.374476"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d9b749dc-a3d9-485a-b6b1-bae53eecae72) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] 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] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.6ms [ActiveJob] [ActionMailer::DeliveryJob] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] Sent mail to email30@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email30@example.com Message-ID: <54ac80e163459_22313df338714b@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e162c1f_22313df338713aa"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e162c1f_22313df338713aa 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_54ac80e162c1f_22313df338713aa 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_54ac80e162c1f_22313df338713aa-- [ActiveJob] [ActionMailer::DeliveryJob] [d9b749dc-a3d9-485a-b6b1-bae53eecae72] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.26ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name116"], ["last_name", "last_name116"], ["created_at", "2015-01-07 00:42:09.410786"], ["updated_at", "2015-01-07 00:42:09.410786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title89"], ["body", "body76"], ["author_id", 1], ["created_at", "2015-01-07 00:42:09.413169"], ["updated_at", "2015-01-07 00:42:09.413169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:09.417399"], ["updated_at", "2015-01-07 00:42:09.417399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "proclaim_posts" SET "body" = ?, "published_at" = ?, "state" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["published_at", "2015-01-07 00:42:09.420317"], ["state", "published"], ["updated_at", "2015-01-07 00:42:09.422050"], ["id", 1]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9e2ddd3e-d087-4958-88ee-491eb8f9c078) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] 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] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] 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] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 23.4ms [ActiveJob] [ActionMailer::DeliveryJob] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] Sent mail to email30@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email30@example.com Message-ID: <54ac80e16e2b1_22313df3387164d@Pandora.mail> Subject: New Post: title89 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e16da61_22313df338715dc"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e16da61_22313df338715dc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title89 ******* Written on January 07, 2015 at 12:42 AM UTC by first_name116 last_name116 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_54ac80e16da61_22313df338715dc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title89

----==_mimepart_54ac80e16da61_22313df338715dc-- [ActiveJob] [ActionMailer::DeliveryJob] [9e2ddd3e-d087-4958-88ee-491eb8f9c078] Performed ActionMailer::DeliveryJob from Inline(mailers) in 26.99ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.6ms  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Proclaim::SubscriptionMailerTest: test_new_comment_notification_email ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name117"], ["last_name", "last_name117"], ["created_at", "2015-01-07 00:42:09.479435"], ["updated_at", "2015-01-07 00:42:09.479435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title90"], ["body", "body77"], ["author_id", 1], ["created_at", "2015-01-07 00:42:09.482064"], ["updated_at", "2015-01-07 00:42:09.482064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email31@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email31@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:09.484854"], ["updated_at", "2015-01-07 00:42:09.484854"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1e69bd3b-9570-41ed-938b-ce1d02375fc4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] 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] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.5ms [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Sent mail to email31@example.com (5.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email31@example.com Message-ID: <54ac80e1802d6_22313df33871960@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e17f984_22313df338718e8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e17f984_22313df338718e8 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_54ac80e17f984_22313df338718e8 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_54ac80e17f984_22313df338718e8-- [ActiveJob] [ActionMailer::DeliveryJob] [1e69bd3b-9570-41ed-938b-ce1d02375fc4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 41.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name118"], ["last_name", "last_name118"], ["created_at", "2015-01-07 00:42:09.533901"], ["updated_at", "2015-01-07 00:42:09.533901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title91"], ["body", "body78"], ["author_id", 2], ["created_at", "2015-01-07 00:42:09.536568"], ["updated_at", "2015-01-07 00:42:09.536568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author11"], ["body", "body10"], ["post_id", 2], ["created_at", "2015-01-07 00:42:09.538571"], ["updated_at", "2015-01-07 00:42:09.538571"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_comment_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.1ms) Proclaim::SubscriptionMailer#new_comment_notification_email: processed outbound mail in 21.2ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Proclaim::SubscriptionMailerTest: test_welcome_email ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email32@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email32@example.com"], ["created_at", "2015-01-07 00:42:09.574993"], ["updated_at", "2015-01-07 00:42:09.574993"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c1ec5409-98b9-4454-abad-f5a8f038a876) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c1ec5409-98b9-4454-abad-f5a8f038a876] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [c1ec5409-98b9-4454-abad-f5a8f038a876] 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] [c1ec5409-98b9-4454-abad-f5a8f038a876] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.5ms [ActiveJob] [ActionMailer::DeliveryJob] [c1ec5409-98b9-4454-abad-f5a8f038a876] Sent mail to email32@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c1ec5409-98b9-4454-abad-f5a8f038a876] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email32@example.com Message-ID: <54ac80e19408d_22313df33872229@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1937a6_22313df338721d8"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1937a6_22313df338721d8 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_54ac80e1937a6_22313df338721d8 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_54ac80e1937a6_22313df338721d8-- [ActiveJob] [ActionMailer::DeliveryJob] [c1ec5409-98b9-4454-abad-f5a8f038a876] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.11ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/welcome_email.html.erb within layouts/proclaim/subscription_mailer (3.6ms) Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 25.7ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Proclaim::SubscriptionMailerTest: test_new_post_notification_email ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email33@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email33@example.com"], ["created_at", "2015-01-07 00:42:09.644266"], ["updated_at", "2015-01-07 00:42:09.644266"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 309403c6-e696-4fec-aa2e-bc65fd86db0a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [309403c6-e696-4fec-aa2e-bc65fd86db0a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [309403c6-e696-4fec-aa2e-bc65fd86db0a] 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] [309403c6-e696-4fec-aa2e-bc65fd86db0a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 26.2ms [ActiveJob] [ActionMailer::DeliveryJob] [309403c6-e696-4fec-aa2e-bc65fd86db0a] Sent mail to email33@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [309403c6-e696-4fec-aa2e-bc65fd86db0a] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email33@example.com Message-ID: <54ac80e1a4e27_22313df3387258a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1a457f_22313df3387245f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1a457f_22313df3387245f 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_54ac80e1a457f_22313df3387245f 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_54ac80e1a457f_22313df3387245f-- [ActiveJob] [ActionMailer::DeliveryJob] [309403c6-e696-4fec-aa2e-bc65fd86db0a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 29.83ms  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name119"], ["last_name", "last_name119"], ["created_at", "2015-01-07 00:42:09.679478"], ["updated_at", "2015-01-07 00:42:09.679478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title92"], ["body", "body79"], ["author_id", 1], ["published_at", "2015-01-07 00:42:09.681043"], ["state", "published"], ["created_at", "2015-01-07 00:42:09.682505"], ["updated_at", "2015-01-07 00:42:09.682505"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4f78e8d0-b194-448f-a281-a67015e509a4) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "new_post_notification_email", "deliver_now", gid://dummy/Proclaim::Subscription/1, gid://dummy/Proclaim::Post/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4f78e8d0-b194-448f-a281-a67015e509a4] 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] [4f78e8d0-b194-448f-a281-a67015e509a4] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4f78e8d0-b194-448f-a281-a67015e509a4] 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] [4f78e8d0-b194-448f-a281-a67015e509a4] Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 21.3ms [ActiveJob] [ActionMailer::DeliveryJob] [4f78e8d0-b194-448f-a281-a67015e509a4] Sent mail to email33@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4f78e8d0-b194-448f-a281-a67015e509a4] Date: Tue, 06 Jan 2015 19:42:09 -0500 From: from@example.com To: email33@example.com Message-ID: <54ac80e1ad50a_22313df338727cf@Pandora.mail> Subject: New Post: title92 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e1acca0_22313df338726db"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e1acca0_22313df338726db Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ******* title92 ******* body79 Written on January 07, 2015 at 12:42 AM UTC by first_name119 last_name119 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_54ac80e1acca0_22313df338726db Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

title92

body79
----==_mimepart_54ac80e1acca0_22313df338726db-- [ActiveJob] [ActionMailer::DeliveryJob] [4f78e8d0-b194-448f-a281-a67015e509a4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 24.92ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscription_mailer/new_post_notification_email.html.erb within layouts/proclaim/subscription_mailer (0.2ms) Proclaim::SubscriptionMailer#new_post_notification_email: processed outbound mail in 20.5ms  (0.2ms) rollback transaction --------------------------------------------- PostFormTest: test_should_delete_cached_image ---------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name120"], ["last_name", "last_name120"], ["created_at", "2015-01-07 00:42:09.743256"], ["updated_at", "2015-01-07 00:42:09.743256"]]  (42.6ms) commit transaction  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name121"], ["last_name", "last_name121"], ["created_at", "2015-01-07 00:42:09.796632"], ["updated_at", "2015-01-07 00:42:09.796632"]]  (36.1ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title93"], ["body", "
"], ["author_id", 2], ["created_at", "2015-01-07 00:42:09.842236"], ["updated_at", "2015-01-07 00:42:09.842236"]]  (30.1ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:42:09 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.0ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-06 19:42:10 -0500 Started GET "/assets/remove.png" for 127.0.0.1 at 2015-01-06 19:42:10 -0500 Started GET "/assets/resize-smaller.png" for 127.0.0.1 at 2015-01-06 19:42:10 -0500 Started GET "/assets/link.png" for 127.0.0.1 at 2015-01-06 19:42:10 -0500 Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:42:10 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420591329-8753-7437/test.jpg"} Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (46.8ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (41.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (45.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.9ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.7ms) DELETE FROM sqlite_sequence where name = 'users';  (32.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.6ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- PostFormTest: test_should_show_error_without_body -------------------------------------------------  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name122"], ["last_name", "last_name122"], ["created_at", "2015-01-07 00:42:10.808391"], ["updated_at", "2015-01-07 00:42:10.808391"]]  (40.5ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:42:10 -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.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:42: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 (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts"  (41.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (36.2ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (29.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (36.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.2ms) DELETE FROM sqlite_sequence where name = 'users';  (32.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------------------------------- PostFormTest: test_delete_saved_image_but_not_save_should_still_show_image --------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name123"], ["last_name", "last_name123"], ["created_at", "2015-01-07 00:42:11.736586"], ["updated_at", "2015-01-07 00:42:11.736586"]]  (41.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name124"], ["last_name", "last_name124"], ["created_at", "2015-01-07 00:42:11.784406"], ["updated_at", "2015-01-07 00:42:11.784406"]]  (37.8ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title94"], ["body", "body80"], ["author_id", 2], ["created_at", "2015-01-07 00:42:11.827822"], ["updated_at", "2015-01-07 00:42:11.827822"]]  (42.5ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:11.883950"], ["updated_at", "2015-01-07 00:42:11.883950"]]  (42.4ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "
"], ["updated_at", "2015-01-07 00:42:11.940574"], ["id", 1]]  (47.6ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:42:12 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (4.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.9ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:42:12 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:12 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.4ms)  (27.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (41.1ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (45.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (43.3ms) DELETE FROM sqlite_sequence where name = 'users';  (36.6ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.9ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (48.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------- PostFormTest: test_should_delete_saved_image --------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name125"], ["last_name", "last_name125"], ["created_at", "2015-01-07 00:42:12.888794"], ["updated_at", "2015-01-07 00:42:12.888794"]]  (36.5ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name126"], ["last_name", "last_name126"], ["created_at", "2015-01-07 00:42:12.931868"], ["updated_at", "2015-01-07 00:42:12.931868"]]  (33.8ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title95"], ["body", "body81"], ["author_id", 2], ["created_at", "2015-01-07 00:42:12.971077"], ["updated_at", "2015-01-07 00:42:12.971077"]]  (41.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:13.021646"], ["updated_at", "2015-01-07 00:42:13.021646"]]  (39.1ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) UPDATE "proclaim_posts" SET "body" = ?, "updated_at" = ? WHERE "proclaim_posts"."id" = ? [["body", "

test

"], ["updated_at", "2015-01-07 00:42:13.068127"], ["id", 1]]  (32.2ms) commit transaction Started GET "/proclaim/posts/1/edit" for 127.0.0.1 at 2015-01-06 19:42:13 -0500 Processing by Proclaim::PostsController#edit as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (3.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/edit.html.erb within layouts/application (4.3ms) Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms) Started POST "/proclaim/images/discard" for 127.0.0.1 at 2015-01-06 19:42:13 -0500 Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Proclaim::Image Load (0.2ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started PATCH "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:13 -0500 Processing by Proclaim::PostsController#update as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"title95", "body"=>"

test

\r\n\t\t


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

test

\r\n\t\t


"], ["updated_at", "2015-01-07 00:42:13.459430"], ["id", 1]] SQL (0.3ms) DELETE FROM "proclaim_images" WHERE "proclaim_images"."id" = ? [["id", 1]]  (45.5ms) commit transaction Redirected to http://127.0.0.1:40454/proclaim/posts/1 Completed 302 Found in 56ms (ActiveRecord: 46.6ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:13 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (6.3ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.5ms)  (43.1ms) DELETE FROM "proclaim_posts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (32.9ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.8ms) DELETE FROM "users";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.8ms) DELETE FROM sqlite_sequence where name = 'users';  (41.2ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.2ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- PostFormTest: test_should_create_post -------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name127"], ["last_name", "last_name127"], ["created_at", "2015-01-07 00:42:14.080961"], ["updated_at", "2015-01-07 00:42:14.080961"]]  (34.7ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:42:14 -0500 Processing by Proclaim::PostsController#new as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:42:14 -0500 Processing by Proclaim::PostsController#create as HTML Parameters: {"utf8"=>"✓", "post"=>{"title"=>"Post Title
", "body"=>"

Paragraph 1

Paragraph 2

"}, "commit"=>"Create Post"}  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Post Title"], ["body", "

Paragraph 1

Paragraph 2

"], ["author_id", 1], ["created_at", "2015-01-07 00:42:14.800747"], ["updated_at", "2015-01-07 00:42:14.800747"]]  (24.7ms) commit transaction Redirected to http://127.0.0.1:40454/proclaim/posts/1 Completed 302 Found in 34ms (ActiveRecord: 25.5ms) Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:14 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (7.4ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_posts"  (86.4ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (43.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (57.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (48.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (45.4ms) DELETE FROM sqlite_sequence where name = 'users';  (57.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (53.4ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------------------- PostFormTest: test_should_show_error_without_title --------------------------------------------------  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name128"], ["last_name", "last_name128"], ["created_at", "2015-01-07 00:42:15.693772"], ["updated_at", "2015-01-07 00:42:15.693772"]]  (38.6ms) commit transaction Started GET "/proclaim/posts/new" for 127.0.0.1 at 2015-01-06 19:42:15 -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 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.7ms) SELECT COUNT(*) FROM "proclaim_posts" Started POST "/proclaim/posts" for 127.0.0.1 at 2015-01-06 19:42:16 -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 (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_posts"  (20.4ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (23.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (18.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (23.4ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (25.7ms) DELETE FROM sqlite_sequence where name = 'users';  (38.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (48.6ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';  (0.2ms) begin transaction ----------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_logged_in -----------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name129"], ["last_name", "last_name129"], ["created_at", "2015-01-07 00:42:16.632104"], ["updated_at", "2015-01-07 00:42:16.632104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name130"], ["last_name", "last_name130"], ["created_at", "2015-01-07 00:42:16.635994"], ["updated_at", "2015-01-07 00:42:16.635994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title96"], ["body", "body82"], ["author_id", 2], ["created_at", "2015-01-07 00:42:16.638177"], ["updated_at", "2015-01-07 00:42:16.638177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author12"], ["body", "body11"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.640370"], ["updated_at", "2015-01-07 00:42:16.640370"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author13", "body"=>"body12", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body12"], ["author", "author13"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:16.654018"], ["updated_at", "2015-01-07 00:42:16.654018"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.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 (12.9ms) Completed 200 OK in 26ms (Views: 0.7ms | ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 1]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name131"], ["last_name", "last_name131"], ["created_at", "2015-01-07 00:42:16.682212"], ["updated_at", "2015-01-07 00:42:16.682212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title97"], ["body", "body83"], ["author_id", 3], ["published_at", "2015-01-07 00:42:16.683530"], ["state", "published"], ["created_at", "2015-01-07 00:42:16.684881"], ["updated_at", "2015-01-07 00:42:16.684881"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author14"], ["body", "body13"], ["post_id", 2], ["created_at", "2015-01-07 00:42:16.687482"], ["updated_at", "2015-01-07 00:42:16.687482"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author15", "body"=>"body14", "post_id"=>2, "parent_id"=>3}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body14"], ["author", "author15"], ["post_id", 2], ["parent_id", 3], ["created_at", "2015-01-07 00:42:16.696874"], ["updated_at", "2015-01-07 00:42:16.696874"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 4], ["descendant_id", 4], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 4, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 3  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 4]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 4]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) 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.6ms) Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 3]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_destroy_root_comment_if_logged_in -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name132"], ["last_name", "last_name132"], ["created_at", "2015-01-07 00:42:16.724485"], ["updated_at", "2015-01-07 00:42:16.724485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name133"], ["last_name", "last_name133"], ["created_at", "2015-01-07 00:42:16.728617"], ["updated_at", "2015-01-07 00:42:16.728617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title98"], ["body", "body84"], ["author_id", 2], ["created_at", "2015-01-07 00:42:16.731228"], ["updated_at", "2015-01-07 00:42:16.731228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author16"], ["body", "body15"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.733613"], ["updated_at", "2015-01-07 00:42:16.733613"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.1ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_reply_if_not_logged_in ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name134"], ["last_name", "last_name134"], ["created_at", "2015-01-07 00:42:16.749451"], ["updated_at", "2015-01-07 00:42:16.749451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title99"], ["body", "body85"], ["author_id", 1], ["created_at", "2015-01-07 00:42:16.752500"], ["updated_at", "2015-01-07 00:42:16.752500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author17"], ["body", "body16"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.755114"], ["updated_at", "2015-01-07 00:42:16.755114"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author18", "body"=>"body17", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name135"], ["last_name", "last_name135"], ["created_at", "2015-01-07 00:42:16.778954"], ["updated_at", "2015-01-07 00:42:16.778954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title100"], ["body", "body86"], ["author_id", 2], ["published_at", "2015-01-07 00:42:16.780418"], ["state", "published"], ["created_at", "2015-01-07 00:42:16.781728"], ["updated_at", "2015-01-07 00:42:16.781728"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author19"], ["body", "body18"], ["post_id", 2], ["created_at", "2015-01-07 00:42:16.784377"], ["updated_at", "2015-01-07 00:42:16.784377"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author20", "body"=>"body19", "post_id"=>2, "parent_id"=>2}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "body19"], ["author", "author20"], ["post_id", 2], ["parent_id", 2], ["created_at", "2015-01-07 00:42:16.793363"], ["updated_at", "2015-01-07 00:42:16.793363"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 2  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.2ms) Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? [["parent_id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC LIMIT 1 [["parent_id", 2]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_destroy_root_comment_if_not_logged_in ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name136"], ["last_name", "last_name136"], ["created_at", "2015-01-07 00:42:16.815309"], ["updated_at", "2015-01-07 00:42:16.815309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title101"], ["body", "body87"], ["author_id", 1], ["created_at", "2015-01-07 00:42:16.817900"], ["updated_at", "2015-01-07 00:42:16.817900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author21"], ["body", "body20"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.820129"], ["updated_at", "2015-01-07 00:42:16.820129"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#destroy as JSON Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_not_create_reply_if_spammy ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name137"], ["last_name", "last_name137"], ["created_at", "2015-01-07 00:42:16.833418"], ["updated_at", "2015-01-07 00:42:16.833418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title102"], ["body", "body88"], ["author_id", 1], ["published_at", "2015-01-07 00:42:16.835102"], ["state", "published"], ["created_at", "2015-01-07 00:42:16.836433"], ["updated_at", "2015-01-07 00:42:16.836433"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author22"], ["body", "body21"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.839699"], ["updated_at", "2015-01-07 00:42:16.839699"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author23", "body"=>"body22", "post_id"=>1, "parent_id"=>1}, "subscription"=>nil, "antispam"=>{"solution"=>3, "answer"=>4}} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_create_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name138"], ["last_name", "last_name138"], ["created_at", "2015-01-07 00:42:16.855754"], ["updated_at", "2015-01-07 00:42:16.855754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name139"], ["last_name", "last_name139"], ["created_at", "2015-01-07 00:42:16.859341"], ["updated_at", "2015-01-07 00:42:16.859341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title103"], ["body", "body89"], ["author_id", 2], ["created_at", "2015-01-07 00:42:16.861566"], ["updated_at", "2015-01-07 00:42:16.861566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author24", "body"=>"body23", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body23"], ["author", "author24"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.869823"], ["updated_at", "2015-01-07 00:42:16.869823"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.0ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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 (3.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.9ms) Completed 200 OK in 32ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name140"], ["last_name", "last_name140"], ["created_at", "2015-01-07 00:42:16.901912"], ["updated_at", "2015-01-07 00:42:16.901912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title104"], ["body", "body90"], ["author_id", 3], ["published_at", "2015-01-07 00:42:16.903246"], ["state", "published"], ["created_at", "2015-01-07 00:42:16.904627"], ["updated_at", "2015-01-07 00:42:16.904627"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author25", "body"=>"body24", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body24"], ["author", "author25"], ["post_id", 2], ["created_at", "2015-01-07 00:42:16.910486"], ["updated_at", "2015-01-07 00:42:16.910486"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (4.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (12.9ms) Completed 200 OK in 22ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_root_update_comment_if_not_logged_in --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name141"], ["last_name", "last_name141"], ["created_at", "2015-01-07 00:42:16.934235"], ["updated_at", "2015-01-07 00:42:16.934235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title105"], ["body", "body91"], ["author_id", 1], ["created_at", "2015-01-07 00:42:16.936845"], ["updated_at", "2015-01-07 00:42:16.936845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author26"], ["body", "body25"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.939067"], ["updated_at", "2015-01-07 00:42:16.939067"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author26", "body"=>"body25", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::CommentsControllerTest: test_should_update_root_comment_if_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name142"], ["last_name", "last_name142"], ["created_at", "2015-01-07 00:42:16.950276"], ["updated_at", "2015-01-07 00:42:16.950276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name143"], ["last_name", "last_name143"], ["created_at", "2015-01-07 00:42:16.953874"], ["updated_at", "2015-01-07 00:42:16.953874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title106"], ["body", "body92"], ["author_id", 2], ["created_at", "2015-01-07 00:42:16.956041"], ["updated_at", "2015-01-07 00:42:16.956041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author27"], ["body", "body26"], ["post_id", 1], ["created_at", "2015-01-07 00:42:16.958252"], ["updated_at", "2015-01-07 00:42:16.958252"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Proclaim::CommentsController#update as JSON Parameters: {"comment"=>{"author"=>"author27", "body"=>"body26", "post_id"=>1}, "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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.2ms) Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_create_root_comment_if_not_logged_in ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name144"], ["last_name", "last_name144"], ["created_at", "2015-01-07 00:42:16.988005"], ["updated_at", "2015-01-07 00:42:16.988005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title107"], ["body", "body93"], ["author_id", 1], ["created_at", "2015-01-07 00:42:16.990877"], ["updated_at", "2015-01-07 00:42:16.990877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author28", "body"=>"body27", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name145"], ["last_name", "last_name145"], ["created_at", "2015-01-07 00:42:17.001674"], ["updated_at", "2015-01-07 00:42:17.001674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title108"], ["body", "body94"], ["author_id", 2], ["published_at", "2015-01-07 00:42:17.002966"], ["state", "published"], ["created_at", "2015-01-07 00:42:17.004280"], ["updated_at", "2015-01-07 00:42:17.004280"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author29", "body"=>"body28", "post_id"=>2, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>1}} Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "body28"], ["author", "author29"], ["post_id", 2], ["created_at", "2015-01-07 00:42:17.010034"], ["updated_at", "2015-01-07 00:42:17.010034"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.0ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 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 (6.8ms) Completed 200 OK in 16ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Proclaim::CommentsControllerTest: test_should_not_create_root_comment_if_spammy -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name146"], ["last_name", "last_name146"], ["created_at", "2015-01-07 00:42:17.027626"], ["updated_at", "2015-01-07 00:42:17.027626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title109"], ["body", "body95"], ["author_id", 1], ["published_at", "2015-01-07 00:42:17.029382"], ["state", "published"], ["created_at", "2015-01-07 00:42:17.030806"], ["updated_at", "2015-01-07 00:42:17.030806"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments" Processing by Proclaim::CommentsController#create as JSON Parameters: {"comment"=>{"author"=>"author30", "body"=>"body29", "post_id"=>1, "parent_id"=>nil}, "subscription"=>nil, "antispam"=>{"solution"=>1, "answer"=>2}} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_not_be_able_to_create_new_blog_subscription_if_spammy ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name147"], ["last_name", "last_name147"], ["created_at", "2015-01-07 00:42:17.043699"], ["updated_at", "2015-01-07 00:42:17.043699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:42:17 -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.7ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:42:17 -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.4ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_not_logged_in --------------------------------------------------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:42:17 -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.2ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-07 00:42:17.085876"], ["updated_at", "2015-01-07 00:42:17.085876"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5d9a51ec-4ec5-4b4c-b185-a59017f3e733) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] 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] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.1ms [ActiveJob] [ActionMailer::DeliveryJob] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] Sent mail to example@example.com (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] Date: Tue, 06 Jan 2015 19:42:17 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80e91d70f_22313df338730f4@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e91ce2d_22313df3387298f"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e91ce2d_22313df3387298f 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_54ac80e91ce2d_22313df3387298f 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_54ac80e91ce2d_22313df3387298f-- [ActiveJob] [ActionMailer::DeliveryJob] [5d9a51ec-4ec5-4b4c-b185-a59017f3e733] Performed ActionMailer::DeliveryJob from Inline(mailers) in 32.95ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 40ms (ActiveRecord: 0.9ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-06 19:42:17 -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 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- BlogSubscriptionTest: test_catch_bad_email_address -------------------------------------------------- Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:42:17 -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.4ms | ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"bad_email_address"}, "antispam"=>{"answer"=>"5", "solution"=>"5"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('bad_email_address') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/_form.html.erb (1.5ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- BlogSubscriptionTest: test_should_be_able_to_create_new_blog_subscription_while_logged_in -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name148"], ["last_name", "last_name148"], ["created_at", "2015-01-07 00:42:17.157915"], ["updated_at", "2015-01-07 00:42:17.157915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/new" for 127.0.0.1 at 2015-01-06 19:42:17 -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.4ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started POST "/proclaim/subscriptions" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"email"=>"example@example.com"}, "antispam"=>{"answer"=>"4", "solution"=>"4"}, "commit"=>"Subscribe"}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('example@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "example@example.com"], ["created_at", "2015-01-07 00:42:17.177622"], ["updated_at", "2015-01-07 00:42:17.177622"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 10af6a17-aaca-45d9-9136-783d76031c8a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [10af6a17-aaca-45d9-9136-783d76031c8a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [10af6a17-aaca-45d9-9136-783d76031c8a] 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] [10af6a17-aaca-45d9-9136-783d76031c8a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 27.4ms [ActiveJob] [ActionMailer::DeliveryJob] [10af6a17-aaca-45d9-9136-783d76031c8a] Sent mail to example@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [10af6a17-aaca-45d9-9136-783d76031c8a] Date: Tue, 06 Jan 2015 19:42:17 -0500 From: from@example.com To: example@example.com Message-ID: <54ac80e93345f_22313df3387325d@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e932ac6_22313df338731cd"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e932ac6_22313df338731cd 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_54ac80e932ac6_22313df338731cd 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_54ac80e932ac6_22313df338731cd-- [ActiveJob] [ActionMailer::DeliveryJob] [10af6a17-aaca-45d9-9136-783d76031c8a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 31.45ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/subscribed Completed 302 Found in 38ms (ActiveRecord: 0.7ms) Started GET "/proclaim/subscriptions/subscribed" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#subscribed as HTML Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/subscribed.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_blog -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email34@example.com') AND "proclaim_subscriptions"."post_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "proclaim_subscriptions" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "email34@example.com"], ["created_at", "2015-01-07 00:42:17.221752"], ["updated_at", "2015-01-07 00:42:17.221752"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 54baea75-2380-4aeb-9a24-6ad2a46c0033) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54baea75-2380-4aeb-9a24-6ad2a46c0033] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [54baea75-2380-4aeb-9a24-6ad2a46c0033] 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] [54baea75-2380-4aeb-9a24-6ad2a46c0033] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 35.0ms [ActiveJob] [ActionMailer::DeliveryJob] [54baea75-2380-4aeb-9a24-6ad2a46c0033] Sent mail to email34@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [54baea75-2380-4aeb-9a24-6ad2a46c0033] Date: Tue, 06 Jan 2015 19:42:17 -0500 From: from@example.com To: email34@example.com Message-ID: <54ac80e93fe2f_22313df3387348a@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e93f53e_22313df338733d2"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e93f53e_22313df338733d2 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_54ac80e93f53e_22313df338733d2 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_54ac80e93f53e_22313df338733d2-- [ActiveJob] [ActionMailer::DeliveryJob] [54baea75-2380-4aeb-9a24-6ad2a46c0033] Performed ActionMailer::DeliveryJob from Inline(mailers) in 38.61ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.7ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-06 19:42: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.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- UnsubscribeTest: test_should_be_able_to_unsubscribe_from_post -------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name149"], ["last_name", "last_name149"], ["created_at", "2015-01-07 00:42:17.306445"], ["updated_at", "2015-01-07 00:42:17.306445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title110"], ["body", "body96"], ["author_id", 1], ["published_at", "2015-01-07 00:42:17.308187"], ["state", "published"], ["created_at", "2015-01-07 00:42:17.309517"], ["updated_at", "2015-01-07 00:42:17.309517"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Proclaim::Subscription Exists (0.1ms) SELECT 1 AS one FROM "proclaim_subscriptions" WHERE (LOWER("proclaim_subscriptions"."email") = LOWER('email35@example.com') AND "proclaim_subscriptions"."post_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "proclaim_subscriptions" ("email", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "email35@example.com"], ["post_id", 1], ["created_at", "2015-01-07 00:42:17.313015"], ["updated_at", "2015-01-07 00:42:17.313015"]] [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d0d84c7c-c084-4b60-9019-8718fd264b2a) to Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Proclaim::SubscriptionMailer", "welcome_email", "deliver_now", gid://dummy/Proclaim::Subscription/1 [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Proclaim::Post Load (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] 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] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Proclaim::SubscriptionMailer#welcome_email: processed outbound mail in 29.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Sent mail to email35@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Date: Tue, 06 Jan 2015 19:42:17 -0500 From: from@example.com To: email35@example.com Message-ID: <54ac80e954b9a_22313df338736cf@Pandora.mail> Subject: Welcome to localhost:3000/proclaim! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_54ac80e9542b7_22313df3387356"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_54ac80e9542b7_22313df3387356 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_54ac80e9542b7_22313df3387356 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_54ac80e9542b7_22313df3387356-- [ActiveJob] [ActionMailer::DeliveryJob] [d0d84c7c-c084-4b60-9019-8718fd264b2a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 33.05ms  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#unsubscribe as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/subscriptions/unsubscribe.html.erb within layouts/application (0.3ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions" Started DELETE "/proclaim/subscriptions/unsubscribe/BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::SubscriptionsController#destroy as HTML Parameters: {"token"=>"BAhpBg==--23a11ed0cd486b17da9c5370b051287d36a6758d"} Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/proclaim/subscriptions/unsubscribe Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/proclaim/subscriptions/unsubscribe" for 127.0.0.1 at 2015-01-06 19:42: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.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_subscriptions"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_not_logged_in ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name150"], ["last_name", "last_name150"], ["created_at", "2015-01-07 00:42:17.375692"], ["updated_at", "2015-01-07 00:42:17.375692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title111"], ["body", "body97"], ["author_id", 1], ["created_at", "2015-01-07 00:42:17.378671"], ["updated_at", "2015-01-07 00:42:17.378671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:17.383717"], ["updated_at", "2015-01-07 00:42:17.383717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name151"], ["last_name", "last_name151"], ["created_at", "2015-01-07 00:42:17.395268"], ["updated_at", "2015-01-07 00:42:17.395268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title112"], ["body", "body98"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.397610"], ["updated_at", "2015-01-07 00:42:17.397610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_create_image_if_logged_in ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name152"], ["last_name", "last_name152"], ["created_at", "2015-01-07 00:42:17.402277"], ["updated_at", "2015-01-07 00:42:17.402277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name153"], ["last_name", "last_name153"], ["created_at", "2015-01-07 00:42:17.405680"], ["updated_at", "2015-01-07 00:42:17.405680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title113"], ["body", "body99"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.407704"], ["updated_at", "2015-01-07 00:42:17.407704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}}  (0.1ms) SAVEPOINT active_record_1 Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:17.417306"], ["updated_at", "2015-01-07 00:42:17.417306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name154"], ["last_name", "last_name154"], ["created_at", "2015-01-07 00:42:17.422396"], ["updated_at", "2015-01-07 00:42:17.422396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title114"], ["body", "body100"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.424600"], ["updated_at", "2015-01-07 00:42:17.424600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_cache_image_if_not_logged_in ----------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name155"], ["last_name", "last_name155"], ["created_at", "2015-01-07 00:42:17.436782"], ["updated_at", "2015-01-07 00:42:17.436782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title115"], ["body", "body101"], ["author_id", 1], ["created_at", "2015-01-07 00:42:17.439364"], ["updated_at", "2015-01-07 00:42:17.439364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_cache_image_if_logged_in --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name156"], ["last_name", "last_name156"], ["created_at", "2015-01-07 00:42:17.443761"], ["updated_at", "2015-01-07 00:42:17.443761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name157"], ["last_name", "last_name157"], ["created_at", "2015-01-07 00:42:17.447068"], ["updated_at", "2015-01-07 00:42:17.447068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title116"], ["body", "body102"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.449150"], ["updated_at", "2015-01-07 00:42:17.449150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#cache as JSON Parameters: {"file"=>#>} Unpermitted parameter: format Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name158"], ["last_name", "last_name158"], ["created_at", "2015-01-07 00:42:17.458981"], ["updated_at", "2015-01-07 00:42:17.458981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title117"], ["body", "body103"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.461557"], ["updated_at", "2015-01-07 00:42:17.461557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_discard_image_if_logged_in ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name159"], ["last_name", "last_name159"], ["created_at", "2015-01-07 00:42:17.466035"], ["updated_at", "2015-01-07 00:42:17.466035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name160"], ["last_name", "last_name160"], ["created_at", "2015-01-07 00:42:17.469679"], ["updated_at", "2015-01-07 00:42:17.469679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title118"], ["body", "body104"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.472166"], ["updated_at", "2015-01-07 00:42:17.472166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420591337-8753-6058/test.jpg"} Unpermitted parameter: format Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name161"], ["last_name", "last_name161"], ["created_at", "2015-01-07 00:42:17.483370"], ["updated_at", "2015-01-07 00:42:17.483370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title119"], ["body", "body105"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.485639"], ["updated_at", "2015-01-07 00:42:17.485639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_create_image_if_not_logged_in -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name162"], ["last_name", "last_name162"], ["created_at", "2015-01-07 00:42:17.490411"], ["updated_at", "2015-01-07 00:42:17.490411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title120"], ["body", "body106"], ["author_id", 1], ["created_at", "2015-01-07 00:42:17.493244"], ["updated_at", "2015-01-07 00:42:17.493244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#create as JSON Parameters: {"image"=>{"post_id"=>1, "image"=>#>}} Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name163"], ["last_name", "last_name163"], ["created_at", "2015-01-07 00:42:17.502475"], ["updated_at", "2015-01-07 00:42:17.502475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title121"], ["body", "body107"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.504778"], ["updated_at", "2015-01-07 00:42:17.504778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Proclaim::ImagesControllerTest: test_should_not_destroy_image_if_logged_in_but_return_ID ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name164"], ["last_name", "last_name164"], ["created_at", "2015-01-07 00:42:17.508794"], ["updated_at", "2015-01-07 00:42:17.508794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name165"], ["last_name", "last_name165"], ["created_at", "2015-01-07 00:42:17.512310"], ["updated_at", "2015-01-07 00:42:17.512310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title122"], ["body", "body108"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.514845"], ["updated_at", "2015-01-07 00:42:17.514845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_images" ("post_id", "image", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["post_id", 1], ["image", "test.jpg"], ["created_at", "2015-01-07 00:42:17.519608"], ["updated_at", "2015-01-07 00:42:17.519608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/proclaim/image/image/1/test.jpg"} Unpermitted parameter: format Proclaim::Image Load (0.1ms) SELECT "proclaim_images".* FROM "proclaim_images" WHERE "proclaim_images"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name166"], ["last_name", "last_name166"], ["created_at", "2015-01-07 00:42:17.529999"], ["updated_at", "2015-01-07 00:42:17.529999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title123"], ["body", "body109"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.532487"], ["updated_at", "2015-01-07 00:42:17.532487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Proclaim::ImagesControllerTest: test_should_not_discard_image_if_not_logged_in ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name167"], ["last_name", "last_name167"], ["created_at", "2015-01-07 00:42:17.537812"], ["updated_at", "2015-01-07 00:42:17.537812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title124"], ["body", "body110"], ["author_id", 1], ["created_at", "2015-01-07 00:42:17.540267"], ["updated_at", "2015-01-07 00:42:17.540267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "proclaim_images" Processing by Proclaim::ImagesController#discard as JSON Parameters: {"file"=>"/uploads/tmp/1420591337-8753-6387/test.jpg"} Unpermitted parameter: format Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "proclaim_images"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name168"], ["last_name", "last_name168"], ["created_at", "2015-01-07 00:42:17.549937"], ["updated_at", "2015-01-07 00:42:17.549937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title125"], ["body", "body111"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.552614"], ["updated_at", "2015-01-07 00:42:17.552614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CommentPolicyTest: test_comment_creation ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name169"], ["last_name", "last_name169"], ["created_at", "2015-01-07 00:42:17.557682"], ["updated_at", "2015-01-07 00:42:17.557682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name170"], ["last_name", "last_name170"], ["created_at", "2015-01-07 00:42:17.561191"], ["updated_at", "2015-01-07 00:42:17.561191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title126"], ["body", "body112"], ["author_id", 2], ["published_at", "2015-01-07 00:42:17.562710"], ["state", "published"], ["created_at", "2015-01-07 00:42:17.564191"], ["updated_at", "2015-01-07 00:42:17.564191"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name171"], ["last_name", "last_name171"], ["created_at", "2015-01-07 00:42:17.568463"], ["updated_at", "2015-01-07 00:42:17.568463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title127"], ["body", "body113"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.570488"], ["updated_at", "2015-01-07 00:42:17.570488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- CommentPolicyTest: test_comment_scope -------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name172"], ["last_name", "last_name172"], ["created_at", "2015-01-07 00:42:17.573337"], ["updated_at", "2015-01-07 00:42:17.573337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name173"], ["last_name", "last_name173"], ["created_at", "2015-01-07 00:42:17.575930"], ["updated_at", "2015-01-07 00:42:17.575930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title128"], ["body", "body114"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.577924"], ["updated_at", "2015-01-07 00:42:17.577924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author33"], ["body", "body32"], ["post_id", 1], ["created_at", "2015-01-07 00:42:17.580047"], ["updated_at", "2015-01-07 00:42:17.580047"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name174"], ["last_name", "last_name174"], ["created_at", "2015-01-07 00:42:17.586898"], ["updated_at", "2015-01-07 00:42:17.586898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title129"], ["body", "body115"], ["author_id", 3], ["created_at", "2015-01-07 00:42:17.588988"], ["updated_at", "2015-01-07 00:42:17.588988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author34"], ["body", "body33"], ["post_id", 2], ["created_at", "2015-01-07 00:42:17.590848"], ["updated_at", "2015-01-07 00:42:17.590848"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 2]] SQL (0.1ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- CommentPolicyTest: test_comment_update --------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name175"], ["last_name", "last_name175"], ["created_at", "2015-01-07 00:42:17.597181"], ["updated_at", "2015-01-07 00:42:17.597181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name176"], ["last_name", "last_name176"], ["created_at", "2015-01-07 00:42:17.600675"], ["updated_at", "2015-01-07 00:42:17.600675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title130"], ["body", "body116"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.603249"], ["updated_at", "2015-01-07 00:42:17.603249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author35"], ["body", "body34"], ["post_id", 1], ["created_at", "2015-01-07 00:42:17.605504"], ["updated_at", "2015-01-07 00:42:17.605504"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- CommentPolicyTest: test_comment_destroy ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name177"], ["last_name", "last_name177"], ["created_at", "2015-01-07 00:42:17.611500"], ["updated_at", "2015-01-07 00:42:17.611500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name178"], ["last_name", "last_name178"], ["created_at", "2015-01-07 00:42:17.614563"], ["updated_at", "2015-01-07 00:42:17.614563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "title131"], ["body", "body117"], ["author_id", 2], ["created_at", "2015-01-07 00:42:17.617114"], ["updated_at", "2015-01-07 00:42:17.617114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author36"], ["body", "body35"], ["post_id", 1], ["created_at", "2015-01-07 00:42:17.619401"], ["updated_at", "2015-01-07 00:42:17.619401"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ ProclaimTest: test_truth ------------------------  (0.0ms) rollback transaction ------------------------------------ CommentTest: test_leave_root_comment ------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name179"], ["last_name", "last_name179"], ["created_at", "2015-01-07 00:42:17.628186"], ["updated_at", "2015-01-07 00:42:17.628186"]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title132"], ["body", "body118"], ["author_id", 1], ["published_at", "2015-01-07 00:42:17.652628"], ["state", "published"], ["created_at", "2015-01-07 00:42:17.654745"], ["updated_at", "2015-01-07 00:42:17.654745"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (26.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:17 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.6ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42: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"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Comment Body"], ["author", "Comment Author"], ["post_id", 1], ["created_at", "2015-01-07 00:42:18.348558"], ["updated_at", "2015-01-07 00:42:18.348558"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (66.7ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.3ms) Completed 200 OK in 93ms (Views: 0.5ms | ActiveRecord: 68.7ms)  (53.3ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (34.5ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (34.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (35.9ms) DELETE FROM "users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.1ms) DELETE FROM sqlite_sequence where name = 'users';  (37.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------- CommentTest: test_delete_parent_comment ---------------------------------------  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name180"], ["last_name", "last_name180"], ["created_at", "2015-01-07 00:42:18.946994"], ["updated_at", "2015-01-07 00:42:18.946994"]]  (24.5ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name181"], ["last_name", "last_name181"], ["created_at", "2015-01-07 00:42:18.979953"], ["updated_at", "2015-01-07 00:42:18.979953"]]  (30.4ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title133"], ["body", "body119"], ["author_id", 2], ["published_at", "2015-01-07 00:42:19.015663"], ["state", "published"], ["created_at", "2015-01-07 00:42:19.020108"], ["updated_at", "2015-01-07 00:42:19.020108"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (29.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author37"], ["body", "body36"], ["post_id", 1], ["created_at", "2015-01-07 00:42:19.055636"], ["updated_at", "2015-01-07 00:42:19.055636"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (23.2ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author38"], ["body", "body37"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:19.089568"], ["updated_at", "2015-01-07 00:42:19.089568"]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (36.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:19 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.8ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.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/posts/show.html.erb within layouts/application (23.1ms) Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-06 19:42:19 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.9ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.3ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (26.0ms) commit transaction Completed 200 OK in 44ms (Views: 0.3ms | ActiveRecord: 28.1ms)  (0.6ms) SELECT COUNT(*) FROM "proclaim_comments"  (24.2ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.7ms) DELETE FROM "proclaim_comments";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (32.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (52.2ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'users';  (31.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (32.6ms) DELETE FROM "proclaim_images";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_cancel_button_should_remove_errors ----------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name182"], ["last_name", "last_name182"], ["created_at", "2015-01-07 00:42:20.892327"], ["updated_at", "2015-01-07 00:42:20.892327"]]  (37.2ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title134"], ["body", "body120"], ["author_id", 1], ["published_at", "2015-01-07 00:42:20.932399"], ["state", "published"], ["created_at", "2015-01-07 00:42:20.937089"], ["updated_at", "2015-01-07 00:42:20.937089"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (38.5ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:21 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (5.9ms) Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 0.5ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:21 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Comment Author", "body"=>"", "post_id"=>"1", "parent_id"=>""}, "antispam"=>{"answer"=>"", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (69.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (40.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (24.8ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (42.0ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (30.4ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.1ms) DELETE FROM sqlite_sequence where name = 'users';  (32.9ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (40.0ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------------------------------------- CommentTest: test_should_not_have_option_to_edit_if_not_logged_in -----------------------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name183"], ["last_name", "last_name183"], ["created_at", "2015-01-07 00:42:21.942328"], ["updated_at", "2015-01-07 00:42:21.942328"]]  (40.9ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) 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-07 00:42:21.987729"], ["state", "published"], ["created_at", "2015-01-07 00:42:21.992142"], ["updated_at", "2015-01-07 00:42:21.992142"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author39"], ["body", "body38"], ["post_id", 1], ["created_at", "2015-01-07 00:42:22.034780"], ["updated_at", "2015-01-07 00:42:22.034780"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.6ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (34.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:22 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.8ms) 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 (10.6ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.5ms)  (40.4ms) DELETE FROM "proclaim_posts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (28.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (29.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (45.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.0ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (35.0ms) DELETE FROM sqlite_sequence where name = 'users';  (48.1ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.9ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------------------------- CommentTest: test_should_not_have_option_to_delete_if_not_logged_in -------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name184"], ["last_name", "last_name184"], ["created_at", "2015-01-07 00:42:22.609704"], ["updated_at", "2015-01-07 00:42:22.609704"]]  (49.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title136"], ["body", "body122"], ["author_id", 1], ["published_at", "2015-01-07 00:42:22.660740"], ["state", "published"], ["created_at", "2015-01-07 00:42:22.662257"], ["updated_at", "2015-01-07 00:42:22.662257"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (41.1ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author40"], ["body", "body39"], ["post_id", 1], ["created_at", "2015-01-07 00:42:22.711055"], ["updated_at", "2015-01-07 00:42:22.711055"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (40.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:22 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.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 (20.4ms) Completed 200 OK in 25ms (Views: 21.6ms | ActiveRecord: 0.5ms)  (37.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (46.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (42.0ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (40.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (40.9ms) DELETE FROM "users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.0ms) DELETE FROM sqlite_sequence where name = 'users';  (47.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (44.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ---------------------------------------------------- CommentTest: test_root_comment_should_fail_if_spammy ----------------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name185"], ["last_name", "last_name185"], ["created_at", "2015-01-07 00:42:23.319138"], ["updated_at", "2015-01-07 00:42:23.319138"]]  (45.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title137"], ["body", "body123"], ["author_id", 1], ["published_at", "2015-01-07 00:42:23.370832"], ["state", "published"], ["created_at", "2015-01-07 00:42:23.375358"], ["updated_at", "2015-01-07 00:42:23.375358"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (32.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:23 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] 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.9ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.7ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42: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"=>"wrong answer", "solution"=>"4"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (40.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (25.6ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (32.5ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (34.4ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (34.3ms) DELETE FROM sqlite_sequence where name = 'users';  (31.6ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (31.1ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_delete_root_comment -------------------------------------  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name186"], ["last_name", "last_name186"], ["created_at", "2015-01-07 00:42:24.366129"], ["updated_at", "2015-01-07 00:42:24.366129"]]  (35.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name187"], ["last_name", "last_name187"], ["created_at", "2015-01-07 00:42:24.408662"], ["updated_at", "2015-01-07 00:42:24.408662"]]  (39.2ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title138"], ["body", "body124"], ["author_id", 2], ["published_at", "2015-01-07 00:42:24.450468"], ["state", "published"], ["created_at", "2015-01-07 00:42:24.455021"], ["updated_at", "2015-01-07 00:42:24.455021"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (40.5ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author41"], ["body", "body40"], ["post_id", 1], ["created_at", "2015-01-07 00:42:24.501844"], ["updated_at", "2015-01-07 00:42:24.501844"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (41.4ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:24 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (12.6ms) Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/1" for 127.0.0.1 at 2015-01-06 19:42:25 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.8ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 1 ) AS x ) OR descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]] SQL (0.4ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 1]]  (64.0ms) commit transaction Completed 200 OK in 73ms (Views: 0.3ms | ActiveRecord: 65.5ms)  (0.5ms) SELECT COUNT(*) FROM "proclaim_comments"  (78.0ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (45.7ms) DELETE FROM "proclaim_comments";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.4ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.2ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.4ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.2ms) DELETE FROM sqlite_sequence where name = 'users';  (49.6ms) DELETE FROM "proclaim_subscriptions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (50.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------ CommentTest: test_edit_child_comment ------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name188"], ["last_name", "last_name188"], ["created_at", "2015-01-07 00:42:26.152064"], ["updated_at", "2015-01-07 00:42:26.152064"]]  (43.2ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name189"], ["last_name", "last_name189"], ["created_at", "2015-01-07 00:42:26.206235"], ["updated_at", "2015-01-07 00:42:26.206235"]]  (35.0ms) commit transaction  (0.3ms) begin transaction SQL (1.8ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title139"], ["body", "body125"], ["author_id", 2], ["published_at", "2015-01-07 00:42:26.244990"], ["state", "published"], ["created_at", "2015-01-07 00:42:26.249432"], ["updated_at", "2015-01-07 00:42:26.249432"]] Proclaim::Subscription Load (0.4ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (34.9ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author42"], ["body", "body41"], ["post_id", 1], ["created_at", "2015-01-07 00:42:26.294437"], ["updated_at", "2015-01-07 00:42:26.294437"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (50.8ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author43"], ["body", "body42"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:26.359106"], ["updated_at", "2015-01-07 00:42:26.359106"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (45.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:26 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (8.9ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.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.6ms) 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.9ms) Completed 200 OK in 30ms (Views: 26.9ms | ActiveRecord: 0.9ms) Started PATCH "/proclaim/comments/2.json" for 127.0.0.1 at 2015-01-06 19:42:27 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>"1"}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"2"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:42:27.052421"], ["id", 2]]  (49.6ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] 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.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (11.9ms) Completed 200 OK in 88ms (Views: 0.7ms | ActiveRecord: 51.6ms)  (47.1ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (38.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (39.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (41.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.8ms) DELETE FROM sqlite_sequence where name = 'users';  (28.7ms) DELETE FROM "proclaim_subscriptions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; -------------------------------------- CommentTest: test_delete_child_comment --------------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name190"], ["last_name", "last_name190"], ["created_at", "2015-01-07 00:42:27.770693"], ["updated_at", "2015-01-07 00:42:27.770693"]]  (52.1ms) commit transaction  (0.2ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name191"], ["last_name", "last_name191"], ["created_at", "2015-01-07 00:42:27.830242"], ["updated_at", "2015-01-07 00:42:27.830242"]]  (35.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title140"], ["body", "body126"], ["author_id", 2], ["published_at", "2015-01-07 00:42:27.870725"], ["state", "published"], ["created_at", "2015-01-07 00:42:27.873164"], ["updated_at", "2015-01-07 00:42:27.873164"]] Proclaim::Subscription Load (0.2ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (30.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author44"], ["body", "body43"], ["post_id", 1], ["created_at", "2015-01-07 00:42:27.909575"], ["updated_at", "2015-01-07 00:42:27.909575"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (36.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author45"], ["body", "body44"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:27.954152"], ["updated_at", "2015-01-07 00:42:27.954152"]] SQL (0.8ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (35.1ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:28 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.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.7ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.9ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (23.1ms) Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "proclaim_comments" Started DELETE "/proclaim/comments/2" for 127.0.0.1 at 2015-01-06 19:42:28 -0500 Processing by Proclaim::CommentsController#destroy as JS Parameters: {"id"=>"2"} Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.6ms) DELETE FROM "proclaim_comment_hierarchies" WHERE descendant_id IN ( SELECT DISTINCT descendant_id FROM (SELECT descendant_id FROM "proclaim_comment_hierarchies" WHERE ancestor_id = 2 ) AS x ) OR descendant_id = 2  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]] SQL (0.6ms) DELETE FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? [["id", 2]]  (39.3ms) commit transaction Completed 200 OK in 53ms (Views: 0.2ms | ActiveRecord: 41.2ms)  (0.2ms) SELECT COUNT(*) FROM "proclaim_comments"  (42.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.6ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.5ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (40.7ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (37.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.1ms) DELETE FROM sqlite_sequence where name = 'users';  (38.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (39.7ms) DELETE FROM "proclaim_images";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------------------- CommentTest: test_reply_forms_should_be_exclusive -------------------------------------------------  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name192"], ["last_name", "last_name192"], ["created_at", "2015-01-07 00:42:29.652485"], ["updated_at", "2015-01-07 00:42:29.652485"]]  (38.2ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title141"], ["body", "body127"], ["author_id", 1], ["published_at", "2015-01-07 00:42:29.693939"], ["state", "published"], ["created_at", "2015-01-07 00:42:29.698674"], ["updated_at", "2015-01-07 00:42:29.698674"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (36.4ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author46"], ["body", "body45"], ["post_id", 1], ["created_at", "2015-01-07 00:42:29.741869"], ["updated_at", "2015-01-07 00:42:29.741869"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.5ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author47"], ["body", "body46"], ["post_id", 1], ["created_at", "2015-01-07 00:42:29.797074"], ["updated_at", "2015-01-07 00:42:29.797074"]] SQL (0.9ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (50.3ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:29 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.1ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.0ms) 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.3ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/posts/show.html.erb within layouts/application (14.2ms) Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.5ms)  (30.8ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (33.6ms) DELETE FROM "proclaim_comments";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.5ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (36.4ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (25.1ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.8ms) DELETE FROM sqlite_sequence where name = 'users';  (24.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (28.1ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; --------------------------------------------- CommentTest: test_reply_should_fail_if_spammy ---------------------------------------------  (0.2ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name193"], ["last_name", "last_name193"], ["created_at", "2015-01-07 00:42:30.532503"], ["updated_at", "2015-01-07 00:42:30.532503"]]  (45.2ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title142"], ["body", "body128"], ["author_id", 1], ["published_at", "2015-01-07 00:42:30.583519"], ["state", "published"], ["created_at", "2015-01-07 00:42:30.588061"], ["updated_at", "2015-01-07 00:42:30.588061"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (39.4ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author48"], ["body", "body47"], ["post_id", 1], ["created_at", "2015-01-07 00:42:30.633323"], ["updated_at", "2015-01-07 00:42:30.633323"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.3ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (50.0ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:30 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.6ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.1ms) 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 (12.9ms) Completed 200 OK in 18ms (Views: 14.2ms | ActiveRecord: 0.8ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:31 -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"=>"2"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (71.3ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (39.0ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (35.2ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (46.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (38.6ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (41.9ms) DELETE FROM sqlite_sequence where name = 'users';  (38.8ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (38.4ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ------------------------------------- CommentTest: test_edit_parent_comment -------------------------------------  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name194"], ["last_name", "last_name194"], ["created_at", "2015-01-07 00:42:31.806763"], ["updated_at", "2015-01-07 00:42:31.806763"]]  (41.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name195"], ["last_name", "last_name195"], ["created_at", "2015-01-07 00:42:31.858216"], ["updated_at", "2015-01-07 00:42:31.858216"]]  (45.6ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title143"], ["body", "body129"], ["author_id", 2], ["published_at", "2015-01-07 00:42:31.907777"], ["state", "published"], ["created_at", "2015-01-07 00:42:31.912458"], ["updated_at", "2015-01-07 00:42:31.912458"]] Proclaim::Subscription Load (0.3ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (35.2ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author49"], ["body", "body48"], ["post_id", 1], ["created_at", "2015-01-07 00:42:31.958542"], ["updated_at", "2015-01-07 00:42:31.958542"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (42.3ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["author", "author50"], ["body", "body49"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:32.016546"], ["updated_at", "2015-01-07 00:42:32.016546"]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (41.2ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:32 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.4ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."post_id" = ? AND "proclaim_comments"."id" = ? LIMIT 1 [["post_id", 1], ["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.8ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (14.1ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.1ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (1.7ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (6.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/posts/show.html.erb within layouts/application (28.7ms) Completed 200 OK in 34ms (Views: 29.9ms | ActiveRecord: 0.9ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-06 19:42:32 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (1.1ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:42:32.786806"], ["id", 1]]  (31.6ms) commit transaction Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Load (0.3ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.2ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] CACHE (0.0ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (5.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 (14.0ms) Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (3.5ms) 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 (11.1ms) Completed 200 OK in 79ms (Views: 1.3ms | ActiveRecord: 33.9ms)  (41.5ms) DELETE FROM "proclaim_posts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (32.8ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.9ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (31.9ms) DELETE FROM "proclaim_comment_hierarchies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (31.7ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.6ms) DELETE FROM sqlite_sequence where name = 'users';  (43.3ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (34.9ms) DELETE FROM "proclaim_images";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_edit_root_comment -----------------------------------  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name196"], ["last_name", "last_name196"], ["created_at", "2015-01-07 00:42:33.449019"], ["updated_at", "2015-01-07 00:42:33.449019"]]  (28.5ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name197"], ["last_name", "last_name197"], ["created_at", "2015-01-07 00:42:33.483122"], ["updated_at", "2015-01-07 00:42:33.483122"]]  (35.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title144"], ["body", "body130"], ["author_id", 2], ["published_at", "2015-01-07 00:42:33.522375"], ["state", "published"], ["created_at", "2015-01-07 00:42:33.526936"], ["updated_at", "2015-01-07 00:42:33.526936"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (26.7ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author51"], ["body", "body50"], ["post_id", 1], ["created_at", "2015-01-07 00:42:33.560089"], ["updated_at", "2015-01-07 00:42:33.560089"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (45.8ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:33 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.7ms) 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 (10.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/posts/show.html.erb within layouts/application (19.6ms) Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.7ms) Started PATCH "/proclaim/comments/1.json" for 127.0.0.1 at 2015-01-06 19:42:34 -0500 Processing by Proclaim::CommentsController#update as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Edit Author", "body"=>"Edit Body", "post_id"=>"1", "parent_id"=>""}, "subscription"=>{"email"=>""}, "commit"=>"Comment", "id"=>"1"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Proclaim::Post Load (0.3ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) UPDATE "proclaim_comments" SET "body" = ?, "author" = ?, "updated_at" = ? WHERE "proclaim_comments"."id" = ? [["body", "Edit Body"], ["author", "Edit Author"], ["updated_at", "2015-01-07 00:42:34.393611"], ["id", 1]]  (50.4ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Proclaim::Post Load (0.3ms) 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.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 (14.3ms) Completed 200 OK in 86ms (Views: 0.7ms | ActiveRecord: 52.2ms)  (23.5ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (36.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (31.1ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (30.8ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (43.1ms) DELETE FROM "proclaim_comment_hierarchies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (33.1ms) DELETE FROM sqlite_sequence where name = 'users';  (31.5ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (33.5ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images'; ----------------------------------- CommentTest: test_leave_two_replies -----------------------------------  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["first_name", "first_name198"], ["last_name", "last_name198"], ["created_at", "2015-01-07 00:42:34.922053"], ["updated_at", "2015-01-07 00:42:34.922053"]]  (34.1ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "proclaim_posts" ("title", "body", "author_id", "published_at", "state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["title", "title145"], ["body", "body131"], ["author_id", 1], ["published_at", "2015-01-07 00:42:34.958891"], ["state", "published"], ["created_at", "2015-01-07 00:42:34.963419"], ["updated_at", "2015-01-07 00:42:34.963419"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" IS NULL  (31.3ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "proclaim_comments" ("author", "body", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["author", "author52"], ["body", "body51"], ["post_id", 1], ["created_at", "2015-01-07 00:42:35.002770"], ["updated_at", "2015-01-07 00:42:35.002770"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (1.2ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 1], ["descendant_id", 1], ["generations", 0]] Proclaim::Comment Load (0.0ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 1]]  (35.9ms) commit transaction Started GET "/proclaim/posts/1" for 127.0.0.1 at 2015-01-06 19:42:35 -0500 Processing by Proclaim::PostsController#show as HTML Parameters: {"id"=>"1"} Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN ( SELECT descendant_id, MAX(generations) as depth FROM "proclaim_comment_hierarchies" GROUP BY descendant_id ) AS generation_depth ON "proclaim_comments".id = generation_depth.descendant_id WHERE "proclaim_comments"."post_id" = ? ORDER BY generation_depth.depth, created_at ASC [["post_id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 1]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.2ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (4.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/posts/show.html.erb within layouts/application (9.8ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.4ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:35 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 1", "body"=>"Reply Body 1", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "proclaim_comments" ("body", "author", "post_id", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Reply Body 1"], ["author", "Reply Author 1"], ["post_id", 1], ["parent_id", 1], ["created_at", "2015-01-07 00:42:35.728782"], ["updated_at", "2015-01-07 00:42:35.728782"]] Proclaim::Subscription Load (0.1ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 2], ["descendant_id", 2], ["generations", 0]]  (0.3ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 2, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1  Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 2]]  (58.9ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 2]] Proclaim::Comment Load (0.2ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.1ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 2]] Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_form.html.erb (2.4ms) Rendered /home/krf/src/websites/proclaim/app/views/proclaim/comments/_comment.html.erb (5.3ms) Completed 200 OK in 92ms (Views: 0.6ms | ActiveRecord: 61.2ms) Started POST "/proclaim/comments.json" for 127.0.0.1 at 2015-01-06 19:42:36 -0500 Processing by Proclaim::CommentsController#create as JSON Parameters: {"utf8"=>"✓", "comment"=>{"author"=>"Reply Author 2", "body"=>"Reply Body 2", "post_id"=>"1", "parent_id"=>"1"}, "antispam"=>{"answer"=>"6", "solution"=>"6"}, "subscription"=>{"email"=>""}, "commit"=>"Comment"} Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) 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-07 00:42:36.503776"], ["updated_at", "2015-01-07 00:42:36.503776"]] Proclaim::Subscription Load (0.0ms) SELECT "proclaim_subscriptions".* FROM "proclaim_subscriptions" WHERE "proclaim_subscriptions"."post_id" = ? [["post_id", 1]] SQL (0.4ms) INSERT INTO "proclaim_comment_hierarchies" ("ancestor_id", "descendant_id", "generations") VALUES (?, ?, ?) [["ancestor_id", 3], ["descendant_id", 3], ["generations", 0]]  (0.2ms) INSERT INTO "proclaim_comment_hierarchies" (ancestor_id, descendant_id, generations) SELECT x.ancestor_id, 3, x.generations + 1 FROM "proclaim_comment_hierarchies" x WHERE x.descendant_id = 1 Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? ORDER BY created_at ASC [["parent_id", 3]]  (33.7ms) commit transaction Proclaim::Comment Load (0.4ms) SELECT "proclaim_comments".* FROM "proclaim_comments" INNER JOIN "proclaim_comment_hierarchies" ON "proclaim_comments"."id" = "proclaim_comment_hierarchies"."descendant_id" WHERE "proclaim_comment_hierarchies"."ancestor_id" = ? ORDER BY "proclaim_comment_hierarchies".generations asc, created_at ASC [["ancestor_id", 3]] Proclaim::Comment Load (0.1ms) SELECT "proclaim_comments".* FROM "proclaim_comments" WHERE "proclaim_comments"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Post Load (0.1ms) SELECT "proclaim_posts".* FROM "proclaim_posts" WHERE "proclaim_posts"."id" = ? LIMIT 1 [["id", 1]] Proclaim::Comment Exists (0.2ms) SELECT 1 AS one FROM "proclaim_comments" WHERE "proclaim_comments"."parent_id" = ? LIMIT 1 [["parent_id", 3]] 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.3ms) Completed 200 OK in 72ms (Views: 0.5ms | ActiveRecord: 36.2ms)  (37.3ms) DELETE FROM "proclaim_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.7ms) DELETE FROM sqlite_sequence where name = 'proclaim_posts';  (18.7ms) DELETE FROM "proclaim_comments";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (23.1ms) DELETE FROM sqlite_sequence where name = 'proclaim_comments';  (38.3ms) DELETE FROM "proclaim_comment_hierarchies";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_comment_hierarchies';  (33.9ms) DELETE FROM "users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (37.2ms) DELETE FROM sqlite_sequence where name = 'users';  (42.4ms) DELETE FROM "proclaim_subscriptions";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_subscriptions';  (35.3ms) DELETE FROM "proclaim_images";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'proclaim_images';