[1m[36m (2.0ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (2.0ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.8ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 8ms (ActiveRecord: 0.1ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.3ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.5ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (8.0ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (2.0ms) Sent mail to Undisclosed Recipients (4.2ms) Date: Wed, 19 Mar 2014 11:55:19 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5329cbf765c8b_4103fc06082dbdc8706d@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Something
Click here to view all comments on DummyModel #2.
[1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (1.1ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.5ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2[0m [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 3]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 4]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 6) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6[0m [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 6]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] [1m[36mCommontator::Comment Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 7]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 5]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 14]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."id" != 11 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 11 [["closed_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00], ["closer_id", 16], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."id" != 11 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 11 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]] [1m[36m (0.8ms)[0m [1mcommit transaction[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.6ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.6ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.6ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (1.2ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 8ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.8ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (7.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (2.0ms) Sent mail to Undisclosed Recipients (4.0ms) Date: Wed, 19 Mar 2014 11:55:29 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5329cc01bbfd2_4133ff6ad02dbe8180e2@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #2.
[1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 3]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.8ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Load (0.2ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 5]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 6]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 6]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 11]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5[0m [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6[0m [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7[0m [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 8]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 8]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9[0m [["closed_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 14]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[36m (1.8ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (2.1ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:35 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:35 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:35 UTC +00:00]] [1m[35m (1.1ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 9ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 6ms (ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.7ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (2.6ms) Sent mail to Undisclosed Recipients (4.3ms) Date: Wed, 19 Mar 2014 11:56:36 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5329cc44c2214_4203ffce442dbe897821@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #2.
[1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1[0m [["thread_id", 7]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 7]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 7]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1[0m [["thread_id", 7]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 7], ["commontable_type", "DummyModel"]] [1m[35mCommontator::Comment Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 9) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 9) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 13]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 16) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00], ["subscriber_id", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 15]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 16]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8[0m [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8[0m [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[36m (1.3ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (1.0ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.7ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (6.1ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (1.5ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.2ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 6ms (ActiveRecord: 0.1ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 17ms (ActiveRecord: 1.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 1.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 42ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.3ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 9ms (ActiveRecord: 0.8ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.3ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 1.4ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.2ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 16ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.2ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.3ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (17.7ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 1.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.6ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (5.6ms) Sent mail to Undisclosed Recipients (13.3ms) Date: Wed, 16 Apr 2014 11:55:15 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534eb5f3a8eac_40b3fe02c833be095f2@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #2.
[1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.5ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.3ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.9ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2[0m [["unread", 1], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5[0m [["closed_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 6]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 7]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 8]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (1.0ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 9]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 9]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 9]] [1m[35mSQL (0.5ms)[0m UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 9]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 9]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 9], ["commontable_type", "DummyModel"]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[36m (1.8ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.7ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (6.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.3ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.9ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.1ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 41ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 8ms (ActiveRecord: 0.7ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.3ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.2ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.1ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.8ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (15.0ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (5.6ms) Sent mail to Undisclosed Recipients (10.0ms) Date: Wed, 16 Apr 2014 12:15:36 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534ebab8841ba_45b3fc1e8833bd483283@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #2.
[1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.5ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.5ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 6]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4[0m [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1[0m [["thread_id", 5]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6[0m [["closed_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6[0m [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Load (0.2ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 8]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 8]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 16) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00], ["subscriber_id", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 11]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 16]] [1m[36m (1.7ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")[0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "vote_weight" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope") [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (6.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36mDummyModel Load (0.8ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (1.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed ------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.4ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ---------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps ----------------------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.2ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 7ms (ActiveRecord: 0.1ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized ----------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 42ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 8ms (ActiveRecord: 0.6ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized ------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized -------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted ----------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.3ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.2ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.2ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 18ms (ActiveRecord: 1.5ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ---------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms) [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized ------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 2], ["voter_type", "DummyUser"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized -------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_weight", 0], ["voter_id", 3], ["voter_type", "DummyUser"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.1ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (14.8ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized --------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ---------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized ----------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.2ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (6.0ms) Sent mail to Undisclosed Recipients (10.9ms) Date: Wed, 16 Apr 2014 12:16:45 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534ebafde318b_46c3feb79033be0149ed@Dantes-MacBook-Pro.local.mail> Subject: Anonymous posted a comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #2.
[1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed ----------------------------------------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[35mCommontator::Thread Load (0.2ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2[0m [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 3]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 4]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Load (0.2ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 4]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 5]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.3ms)[0m UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 5]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1[0m [["thread_id", 5]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 5], ["commontable_type", "DummyModel"]] [1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 7]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.3ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 8]] [1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9[0m [["closed_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Thread Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9[0m [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.2ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 14]] [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m