[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 [1m[36m (1.6ms)[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 (1.0ms)[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.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.9ms)[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.9ms)[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.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.9ms)[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.8ms)[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 (7.8ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35m (0.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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36m (0.7ms)[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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[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 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 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.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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 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.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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, 16 Apr 2014 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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.2ms)[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:24:34 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::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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36m (0.6ms)[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 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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.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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) 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" = ? 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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.6ms)[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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? 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_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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? 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 17:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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 16ms (ActiveRecord: 1.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Another thing"}} [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" = ? 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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[36m (0.1ms)[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"=>"And this too"}} [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" = ? 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 17:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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 6ms (ActiveRecord: 0.6ms) [1m[36m (0.5ms)[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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? 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 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" = ? 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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.2ms)[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 48ms (ActiveRecord: 0.8ms) 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" = ? 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 6ms (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.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 7ms (ActiveRecord: 0.5ms) [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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (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, 16 Apr 2014 17:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 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:24:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:34 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 6ms (ActiveRecord: 0.5ms) [1m[36m (0.5ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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:24:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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", nil], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24: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 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24: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.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 17:24:35 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.4ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24: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 6ms (ActiveRecord: 0.8ms) [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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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"."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:24:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? 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:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.4ms) [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.5ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24: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 8ms (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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[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:24: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 37ms (ActiveRecord: 0.7ms) [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 17:24:35 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24: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.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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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"."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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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 26ms (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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 63ms (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:24: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24: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 14ms (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 (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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.6ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.1ms)[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.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.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24: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.5ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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"."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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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"."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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.5ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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"."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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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 [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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.3ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 14ms (ActiveRecord: 1.0ms) [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.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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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) [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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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:24:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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:24:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.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" = ? 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:24: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 11ms (ActiveRecord: 1.0ms) [1m[35m (0.5ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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 (19.1ms) [1m[35m (0.3ms)[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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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 "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:24: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.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[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 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? 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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? 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_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 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? 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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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 7ms (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" = ? 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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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 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" = ? 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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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 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.5ms)[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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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, 16 Apr 2014 17:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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.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" = ? 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.1ms)[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" = ? 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_0004_must unsubscribe 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:35 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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? 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.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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? 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 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[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:24:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 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" = ? 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:24:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (6.1ms) Sent mail to Undisclosed Recipients (46.9ms) Date: Wed, 16 Apr 2014 12:24:36 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534ebcd416050_4ff3fcee5c33bd0916c4@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 (1.0ms)[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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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.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" = ? 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" = ? 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" = ? 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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" = ? 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" = ? 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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.6ms)[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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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:24:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24: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.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:24: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" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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 ----------------------------------------------------------------------------------- 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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::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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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" = ? 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" = ? 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:24: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" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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::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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = ? 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:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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", 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:24:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:36 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" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] [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" = 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.3ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:24:36 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:24:36 UTC +00:00]] [1m[35m (0.7ms)[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:24:36 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" = 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.3ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2[0m [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:24: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", 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 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, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 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" = 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, 16 Apr 2014 17:24:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24: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, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 3 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" = 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:24:36 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24: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"."thread_id" = ?[0m [["thread_id", 3]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 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"], ["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 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:24:36 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:24: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", 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mCommontator::Thread Exists (0.2ms)[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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 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" = 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.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:24:36 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 17:24: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, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 6 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" = 6 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 17:24:36 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 8]] [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", 9], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 6]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 9]] [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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [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" = 10 AND "commontator_comments"."thread_id" = 7) 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:24:36 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 3 LIMIT 1 [["thread_id", 7]] [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", 7]] [1m[36mSQL (0.4ms)[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, 16 Apr 2014 17:24:36 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24:36 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.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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mCommontator::Subscription Load (0.1ms)[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" = ? 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.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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 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, 16 Apr 2014 17:24:36 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 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, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35m (0.8ms)[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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 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", 12], ["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" = 12) 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:24:36 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:24: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, 16 Apr 2014 17:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 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, 16 Apr 2014 17:24:36 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:24: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", 12], ["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" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["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" = 10 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 [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 7]] [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", 12], ["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" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] [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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24: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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [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.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (1.0ms)[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.9ms)[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.9ms)[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 (1.0ms)[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 (1.0ms)[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 (5.6ms)[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 (5.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 (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (10.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (0.8ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36mDummyModel Load (0.3ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35m (0.8ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36m (6.0ms)[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.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[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, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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' 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[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.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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 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 21:45:18 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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" = ? 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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (2.1ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35m (0.2ms)[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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (2.2ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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::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 18ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Another thing"}} [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" = ? 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.3ms)[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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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"=>"And this too"}} [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" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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[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 6ms (ActiveRecord: 0.7ms) [1m[36m (2.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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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 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" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 48ms (ActiveRecord: 0.8ms) 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" = ? 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 5ms (ActiveRecord: 0.3ms) [1m[36m (2.1ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 7ms (ActiveRecord: 0.5ms) [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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (2.2ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (2.1ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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' 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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 21:45: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 9ms (ActiveRecord: 0.7ms) 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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"} 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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 21:45:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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' 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 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45: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 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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.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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:18 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.6ms) [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 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 (2.1ms)[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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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' 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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' 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 21:45:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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 21:45:18 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? 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 21:45:18 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.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.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (1.1ms)[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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45: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 8ms (ActiveRecord: 0.6ms) [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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45: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 35ms (ActiveRecord: 0.5ms) [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" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45: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 5ms (ActiveRecord: 0.5ms) [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.2ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.2ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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"."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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 61ms (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 21:45: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"."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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45: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.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.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 (1.3ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (2.2ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (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.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 21:45: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"."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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45: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.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.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.5ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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"."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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.5ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.2ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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"."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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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"."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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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.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#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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.3ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms) [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.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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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::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 (2.0ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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::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" = ? 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 21:45: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 11ms (ActiveRecord: 1.0ms) [1m[35m (1.7ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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.2ms)[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.9ms) [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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:45: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.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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 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" = ? 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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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 (2.1ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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: 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" = ? 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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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 (2.2ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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, 16 Apr 2014 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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 5ms (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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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 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[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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? 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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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 21:45:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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", 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 21:45:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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.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 21:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:45: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"."thread_id" = ? [["thread_id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (6.3ms) Sent mail to Undisclosed Recipients (50.2ms) Date: Wed, 16 Apr 2014 16:45:19 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534ef9efd6018_a213fe3a1833be067061@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 (1.2ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 4ms (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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (2.9ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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" = ? 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" = ? 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.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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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" = ? 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" = ? 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 (3.0ms)[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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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, 16 Apr 2014 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:19 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" = ? 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" = ? 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 21:45:19 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45: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.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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (3.0ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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" = ? 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 21:45:20 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45:20 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.6ms) [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 21:45:20 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" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 (3.0ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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" = ? 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" = ? 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" = ? 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 21:45:20 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" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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" = ? 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 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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.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" = ? 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 21:45:20 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 (3.2ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.3ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (3.2ms)[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.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" = 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, 16 Apr 2014 21:45:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.3ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.8ms)[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.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.4ms)[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", 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" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (6.1ms)[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[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", 3], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [1m[35m (4.0ms)[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", 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" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (6.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" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.9ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (3.4ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 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" = 4 [["closed_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.8ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (6.0ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.3ms)[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" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["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" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) 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 21:45:20 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (3.2ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (5.8ms)[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", 9], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) 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 21:45:20 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (4.1ms)[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", 8], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 8]] [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", 9], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 9]] [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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (6.2ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.3ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (6.0ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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", 11], ["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" = 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 21:45:20 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.2ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.9ms)[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", 12], ["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" = 12) LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.2ms)[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" = 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", 12], ["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" = ? LIMIT 1[0m [["id", 11]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]] [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 21:45:20 UTC +00:00]] [1m[35m (6.1ms)[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 21:45:20 UTC +00:00]] [1m[36m (5.9ms)[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" = 6[0m [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (5.8ms)[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", 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", 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" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["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", 12], ["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" = 6 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (5.8ms)[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[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", 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (5.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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.2ms)[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" = 13 AND "commontator_comments"."thread_id" = 8) 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 21:45:20 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (2.4ms)[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" = 13 AND "commontator_comments"."thread_id" = 8) 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 21:45:20 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (2.5ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (5.9ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 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 21:45:20 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (2.5ms)[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.3ms)[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 21:45:20 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 (3.3ms)[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" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (3.3ms)[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" = 11 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" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) 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 21:45:20 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[35m (3.4ms)[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 21:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]] [1m[36m (6.2ms)[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.1ms)[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.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00], ["subscriber_id", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:45:20 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", 11]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 15]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 16]] [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 (1.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (1.1ms)[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.8ms)[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.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.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.8ms)[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.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (6.0ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35m (1.6ms)[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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[36m (0.7ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.2ms)[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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.5ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47: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.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:14 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.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" = ? 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.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 15ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Another thing"}} [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" = ? 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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:14 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.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 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"And this too"}} [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" = ? 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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.0ms)[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.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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.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.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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 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" = ? 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 21:47:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.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 48ms (ActiveRecord: 0.8ms) 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" = ? 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 5ms (ActiveRecord: 0.3ms) [1m[36m (0.6ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 7ms (ActiveRecord: 0.5ms) [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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (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, 16 Apr 2014 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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.7ms)[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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) [1m[36m (0.5ms)[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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47: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 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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 21:47:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.6ms)[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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.6ms) [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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:15 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.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" = ? 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 21:47:15 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:47: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 5ms (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 21:47:15 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.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" = ? 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 21:47:15 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:47: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 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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 21:47:15 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:15 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? 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 21:47: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"."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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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"."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 21:47:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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 21:47: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 8ms (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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? 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 21:47: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 36ms (ActiveRecord: 0.5ms) [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" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 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.5ms)[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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.9ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 60ms (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 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47: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.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 (1.1ms)[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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.5ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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: 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.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47: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.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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.5ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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"."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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.1ms)[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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.1ms)[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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms) [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.6ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 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" = ? 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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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[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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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.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 21:47:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47: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 10ms (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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 (12.3ms) [1m[35m (1.0ms)[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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47: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 21:47:15 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::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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = ? 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 21:47:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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_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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 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" = ? 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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.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.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" = ? 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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.5ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.4ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.1ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Subscription Exists (0.2ms)[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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.1ms) [1m[36m (0.6ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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.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.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 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[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, 16 Apr 2014 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (5.4ms) Sent mail to Undisclosed Recipients (51.3ms) Date: Wed, 16 Apr 2014 16:47:16 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534efa642651d_a303fded1833bd8108a6@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 (1.0ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 4ms (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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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" = ? 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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" = ? 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" = ? 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" = ? 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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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 21:47:16 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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 21:47:16 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.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" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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 21:47:16 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", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = ? 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 21:47:16 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 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = 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 21:47:16 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = 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", nil], ["updated_at", Wed, 16 Apr 2014 21:47: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_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 3]] [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", 3]] [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" = 3[0m [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [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.1ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] [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" = 1 LIMIT 1 [["thread_id", 3]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 3], ["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", 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.5ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 6 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" = 6 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 21:47:16 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 6 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" = 6 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, 16 Apr 2014 21:47:16 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 6 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" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["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", 5], ["subscriber_type", "DummyUser"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]] [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", 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" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 8], ["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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36m (0.7ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = 9 AND "commontator_comments"."thread_id" = 7) 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 21:47:16 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36m (0.8ms)[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" = 9 AND "commontator_comments"."thread_id" = 7) 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 21:47:16 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35m (0.8ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35m (0.9ms)[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" = 9 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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36m (0.7ms)[0m [1mcommit 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 9 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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) 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 21:47:16 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 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" = 9 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 Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 9]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:47:16 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" = 3[0m [["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35m (0.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 9 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" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["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", 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", 12], ["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" = 4[0m [["unread", 0], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 9 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" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] [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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36m (0.9ms)[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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 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, 16 Apr 2014 21:47:16 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 21:47: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_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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.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" = 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 21:47:16 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 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" = ? LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1[0m [["id", 10]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 14]] [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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[36m (0.8ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47: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" = 11 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" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) 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 21:47:16 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:47: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 21:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 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", 16], ["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" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 16) 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 21:47:16 UTC +00:00], ["subscriber_id", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:47: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"."thread_id" = ?[0m [["thread_id", 11]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 15]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 16]] [1m[36m (1.6ms)[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 (13.7ms)[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.9ms)[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 (6.0ms)[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 (16.0ms)[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 (1.0ms)[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.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 (5.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (5.9ms)[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.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (5.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (5.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (38.8ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35m (3.1ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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::Comment: test_0002_must know if it has been modified ----------------------------------------------------------------- [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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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 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", Thu, 17 Apr 2014 14:31:45 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_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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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"."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", Thu, 17 Apr 2014 14:31:45 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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[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.3ms)[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", Thu, 17 Apr 2014 14:31:45 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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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.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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) [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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? 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" = ? 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.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.6ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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"}} 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" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (2.1ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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::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 14ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Another thing"}} [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" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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::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"=>"And this too"}} [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" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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::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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? 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 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" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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::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) 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" = ? 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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 7ms (ActiveRecord: 0.5ms) [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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31: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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:45 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 1ms (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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31:45 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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", nil], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31: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 9ms (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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 14:31: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 6ms (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", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 14:31: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.5ms) [1m[36m (2.1ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31:45 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 6ms (ActiveRecord: 0.4ms) [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" = ? LIMIT 1[0m [["id", 2]] [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.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? 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", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31: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 8ms (ActiveRecord: 0.6ms) [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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31: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.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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["editor_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 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 6ms (ActiveRecord: 0.5ms) [1m[35m (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 14ms (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.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", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 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 (1.7ms)[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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 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 (1.7ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35m (0.1ms)[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"."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.3ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (1.7ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.3ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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::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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.3ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 16ms (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#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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 14ms (ActiveRecord: 1.0ms) [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 (2.3ms)[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.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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[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.6ms) [1m[35m (2.3ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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[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" = ? 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", Thu, 17 Apr 2014 14:31:46 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 10ms (ActiveRecord: 0.9ms) [1m[35m (1.6ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.2ms)[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 (18.0ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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 "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31: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.1ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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 7ms (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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31: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.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 (2.2ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mCommontator::Thread Exists (0.3ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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 5ms (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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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 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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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.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" = 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (5.6ms) Sent mail to Undisclosed Recipients (13.2ms) Date: Thu, 17 Apr 2014 09:31:46 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534fe5d2cb369_2263fc3a8433bd0283e1@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 (1.7ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 4ms (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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (2.9ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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" = ? 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" = ? 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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" = ? 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" = ? 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" = ? 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 (3.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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? 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.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[35m (3.2ms)[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31: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.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", Thu, 17 Apr 2014 14:31: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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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", nil], ["updated_at", Thu, 17 Apr 2014 14:31: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.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" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[35mSQL (0.2ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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[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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31: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" = ? 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", Thu, 17 Apr 2014 14:31: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 6ms (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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 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" = ? 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", Thu, 17 Apr 2014 14:31: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", Thu, 17 Apr 2014 14:31:46 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]] [1m[35m (5.2ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.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" = 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (2.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" = 1 LIMIT 1[0m [["thread_id", 2]] [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", 2]] [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" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]] [1m[35m (3.4ms)[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", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? LIMIT 1[0m [["commontable_id", 2], ["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" = 1 LIMIT 1 [["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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.2ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.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" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["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" = 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.6ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.1ms)[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[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.5ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 4]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.1ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.4ms)[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" = 5 AND "commontator_comments"."thread_id" = 5) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (2.8ms)[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" = 5 AND "commontator_comments"."thread_id" = 5) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (2.6ms)[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.1ms)[0m begin transaction [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.2ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (4.0ms)[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" = 6 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" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.6ms)[0m [1mcommit 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.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" = 6 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" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.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", 6], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 6]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 6]] [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" = ? LIMIT 1 [["id", 6]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 7]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.0ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.6ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.3ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (4.0ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (8.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.8ms)[0m [1mcommit 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (8.4ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.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" = 9 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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.5ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.0ms)[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", 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" = 9 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.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", 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" = 9 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 Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 9]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 10]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.1ms)[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" = 5[0m [["unread", 1], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.0ms)[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" = 6 [["unread", 2], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.2ms)[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", 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" = 9 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" = 9 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" = 9 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 [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6[0m [["unread", 0], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.0ms)[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.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (6.2ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.5ms)[0m [1mcommit 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.1ms)[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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (3.5ms)[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", 13], ["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" = 13) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.5ms)[0m [1mcommit 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.0ms)[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", 14], ["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" = 14) 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[36m (3.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" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["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", 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.2ms)[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", 13], ["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", 7]] [1m[36m (3.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", 13], ["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", 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", Thu, 17 Apr 2014 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]] [1m[35m (6.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" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] [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 (1.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up") [1m[36m (11.0ms)[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 (1.3ms)[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.9ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m [1m[35m (6.9ms)[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 (6.8ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (7.4ms)[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 (8.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 (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (7.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2') [1m[36m (7.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (43.9ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35m (3.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36m (6.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.3ms)[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", Thu, 17 Apr 2014 15:19:02 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.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.2ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[36m (2.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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) [1m[36m (2.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Another thing"}} [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" = ? 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.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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"=>"And this too"}} [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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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 6ms (ActiveRecord: 0.7ms) [1m[36m (2.3ms)[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.6ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? 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 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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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) 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" = ? 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 5ms (ActiveRecord: 0.3ms) [1m[36m (2.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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 7ms (ActiveRecord: 0.5ms) [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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.5ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (2.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 6ms (ActiveRecord: 0.4ms) [1m[36m (2.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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.3ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", nil], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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", Thu, 17 Apr 2014 15:19:02 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.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" = ? 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.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:02 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 (2.1ms)[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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 6ms (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" = ? LIMIT 1[0m [["id", 2]] [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.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Thu, 17 Apr 2014 15:19:02 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 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", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["editor_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:02 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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 (2.9ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.2ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35m (0.2ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[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", Thu, 17 Apr 2014 15:19:03 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[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["editor_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? 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", Thu, 17 Apr 2014 15:19:03 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.4ms) [1m[35m (2.3ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.4ms)[0m INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 30ms (ActiveRecord: 1.7ms) [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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.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"]] [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", Thu, 17 Apr 2014 15:19:03 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.1ms)[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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 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 (1.0ms)[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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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: 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.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 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 14ms (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 (1.5ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [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"."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.3ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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.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.6ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 19ms (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"]] 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" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.2ms)[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.3ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_weight", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.1ms)[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" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 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 (2.5ms)[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.5ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 8ms (ActiveRecord: 0.8ms) [1m[35m (2.3ms)[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.4ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 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 (2.1ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 (12.5ms) [1m[35m (3.1ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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.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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? 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 (2.3ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.5ms)[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.5ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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 3ms (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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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 [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.5ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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 5ms (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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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 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[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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 5ms (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[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.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" = 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 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.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (6.8ms) Sent mail to Undisclosed Recipients (11.8ms) Date: Thu, 17 Apr 2014 10:19:03 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <534ff0e7e085a_ab733fea99c33bd827616@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 (1.0ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.5ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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" = ? 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" = ? 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" = ? 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" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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" = ? 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" = ? 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" = ? 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) [1m[35m (0.7ms)[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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:03 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:03 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" = ? 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" = ? 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.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:04 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[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", Thu, 17 Apr 2014 15:19:04 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" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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.6ms)[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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = ? 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" = ? 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" = ? 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.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Thu, 17 Apr 2014 15:19:04 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.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = ? 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", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = ? 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", Thu, 17 Apr 2014 15:19:04 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.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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.9ms)[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.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.2ms)[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.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 3]] [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[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 4]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35m (0.7ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.4ms)[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.1ms)[0m begin transaction [1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.8ms)[0m [1mcommit 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 5 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" = 5 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 6], ["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", 7], ["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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 8], ["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", 6], ["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" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["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", 7], ["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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 9], ["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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35m (0.5ms)[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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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.3ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 10 AND "commontator_comments"."thread_id" = 6) 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 1 LIMIT 1[0m [["thread_id", 6]] [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", 6]] [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" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 6]] [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", 6]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1[0m [["commontable_id", 6], ["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" = 1 LIMIT 1 [["thread_id", 7]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.9ms)[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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 8 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 Exists (0.1ms)[0m SELECT 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 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 12], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCommontator::Subscription Exists (0.2ms)[0m SELECT 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 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 8]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] [1m[36mDummyUser Load (0.2ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35m (1.3ms)[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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 14], ["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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Thu, 17 Apr 2014 15:19:04 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[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", 14], ["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", 9]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 14]] [1m[35mSQL (0.3ms)[0m UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7[0m [["unread", 1], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35m (0.7ms)[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" = 8 [["unread", 2], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 13], ["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", 14], ["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", 14], ["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", 14], ["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" = 8[0m [["unread", 0], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 9 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" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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" = 15 AND "commontator_comments"."thread_id" = 10) 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Thu, 17 Apr 2014 15:19:04 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 else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", 10]] [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? 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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[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", Thu, 17 Apr 2014 15:19:04 UTC +00:00], ["closer_id", 16], ["closer_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[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" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 11 [["closed_at", nil], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]] [1m[36m (0.4ms)[0m [1mcommit transaction[0m [1m[36m (1.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_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_c_id_and_c_type_and_t_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_c_id_and_c_type_and_t_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id") [1m[36m (0.9ms)[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, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_commontator_subscriptions_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_commontator_subscriptions_on_s_id_and_s_type_and_t_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_commontator_subscriptions_on_s_id_and_s_type_and_t_id' AND type='index' [0m [1m[35m (5.2ms)[0m CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id") [1m[36m (0.9ms)[0m [1mCREATE 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) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type") [1m[36m (0.8ms)[0m [1mCREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE 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) [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index' [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.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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized -------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.437643"], ["updated_at", "2014-04-22 23:24:48.437643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.454875"], ["updated_at", "2014-04-22 23:24:48.454875"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.481573"], ["updated_at", "2014-04-22 23:24:48.481573"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.493757"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.493757"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized --------------------------------------------------------------------- [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", "2014-04-22 23:24:48.505856"], ["updated_at", "2014-04-22 23:24:48.505856"]] [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", "2014-04-22 23:24:48.507065"], ["updated_at", "2014-04-22 23:24:48.507065"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.507992"], ["updated_at", "2014-04-22 23:24:48.507992"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.509714"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.509714"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized ------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.518151"], ["updated_at", "2014-04-22 23:24:48.518151"]] [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", "2014-04-22 23:24:48.519210"], ["updated_at", "2014-04-22 23:24:48.519210"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.520101"], ["updated_at", "2014-04-22 23:24:48.520101"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.521625"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.521625"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [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" = 1 AND "commontator_threads"."id" != 1 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" = 1 [["closed_at", "2014-04-22 23:24:48.524281"], ["updated_at", "2014-04-22 23:24:48.525506"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create 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", "2014-04-22 23:24:48.529354"], ["updated_at", "2014-04-22 23:24:48.529354"]] [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", "2014-04-22 23:24:48.530619"], ["updated_at", "2014-04-22 23:24:48.530619"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.531576"], ["updated_at", "2014-04-22 23:24:48.531576"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.533201"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.533201"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "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", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.536409"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.536409"]] [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"."thread_id" = ?[0m [["thread_id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Another thing"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", "Another thing"], ["created_at", "2014-04-22 23:24:48.544607"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.544607"]] [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", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"And this too"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", "And this too"], ["created_at", "2014-04-22 23:24:48.548437"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.548437"]] [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"."thread_id" = ?[0m [["thread_id", 1]] Redirected to http://test.host/commontator/threads/1 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_0005_won't create if double posting ------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.551419"], ["updated_at", "2014-04-22 23:24:48.551419"]] [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", "2014-04-22 23:24:48.552487"], ["updated_at", "2014-04-22 23:24:48.552487"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.553421"], ["updated_at", "2014-04-22 23:24:48.553421"]] [1m[35m (0.2ms)[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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.555742"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.555742"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something"}} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.562695"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.562695"]] [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", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "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", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit 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", "2014-04-22 23:24:48.568672"], ["updated_at", "2014-04-22 23:24:48.568672"]] [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", "2014-04-22 23:24:48.569807"], ["updated_at", "2014-04-22 23:24:48.569807"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.570878"], ["updated_at", "2014-04-22 23:24:48.570878"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.573363"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.573363"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 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[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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] Completed 403 Forbidden 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", "2014-04-22 23:24:48.579972"], ["updated_at", "2014-04-22 23:24:48.579972"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.583557"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.583557"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit 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", "2014-04-22 23:24:48.588408"], ["updated_at", "2014-04-22 23:24:48.588408"]] [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", "2014-04-22 23:24:48.590365"], ["updated_at", "2014-04-22 23:24:48.590365"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.591911"], ["updated_at", "2014-04-22 23:24:48.591911"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.594181"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.594181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] Redirected to http://test.host/commontator/threads/1 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] Redirected to http://test.host/commontator/threads/1 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_0008_won't update unless authorized ------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.607594"], ["updated_at", "2014-04-22 23:24:48.607594"]] [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", "2014-04-22 23:24:48.608749"], ["updated_at", "2014-04-22 23:24:48.608749"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.609690"], ["updated_at", "2014-04-22 23:24:48.609690"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.611304"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.611304"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} 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]] 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] 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[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.616298"], ["updated_at", "2014-04-22 23:24:48.616298"]] [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.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] 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 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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.619904"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.619904"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] 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_0009_must update if authorized -------------------------------------------------------------------- [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", "2014-04-22 23:24:48.624598"], ["updated_at", "2014-04-22 23:24:48.624598"]] [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", "2014-04-22 23:24:48.625666"], ["updated_at", "2014-04-22 23:24:48.625666"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.626582"], ["updated_at", "2014-04-22 23:24:48.626582"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.628050"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.628050"]] [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.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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 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"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.632473"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless 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", "2014-04-22 23:24:48.645020"], ["updated_at", "2014-04-22 23:24:48.645020"]] [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", "2014-04-22 23:24:48.647033"], ["updated_at", "2014-04-22 23:24:48.647033"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.648614"], ["updated_at", "2014-04-22 23:24:48.648614"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.650957"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.650957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete 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]] 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] Completed 403 Forbidden in 3ms (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.0ms)[0m SAVEPOINT active_record_1 [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.657395"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.658823"]] [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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.664370"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.664370"]] [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"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.667482"]] [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.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] Completed 403 Forbidden in 4ms (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.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if 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", "2014-04-22 23:24:48.674806"], ["updated_at", "2014-04-22 23:24:48.674806"]] [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", "2014-04-22 23:24:48.676348"], ["updated_at", "2014-04-22 23:24:48.676348"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.677535"], ["updated_at", "2014-04-22 23:24:48.677535"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.679430"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.679430"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", "2014-04-22 23:24:48.683163"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.684109"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found 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", "2014-04-22 23:24:48.685906"], ["updated_at", "2014-04-22 23:24:48.685906"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.687366"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.687366"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", "2014-04-22 23:24:48.688765"]] [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.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.696131"], ["editor_id", 2], ["updated_at", "2014-04-22 23:24:48.697228"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["editor_id", 1], ["updated_at", "2014-04-22 23:24:48.699583"]] [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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.701644"], ["editor_id", 2], ["updated_at", "2014-04-22 23:24:48.702447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 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_0012_won't undelete unless authorized and deleted --------------------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.704967"], ["updated_at", "2014-04-22 23:24:48.704967"]] [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", "2014-04-22 23:24:48.706063"], ["updated_at", "2014-04-22 23:24:48.706063"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.706990"], ["updated_at", "2014-04-22 23:24:48.706990"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.708497"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.708497"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", "2014-04-22 23:24:48.709242"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.709980"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete 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]] 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] 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" = ? LIMIT 1 [["id", 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", "2014-04-22 23:24:48.716121"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [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", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [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", "2014-04-22 23:24:48.720395"], ["updated_at", "2014-04-22 23:24:48.720395"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.721005"], ["editor_id", 2], ["updated_at", "2014-04-22 23:24:48.721885"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.725798"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.725798"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_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" = ? LIMIT 1 [["id", 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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 1], ["updated_at", "2014-04-22 23:24:48.727563"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.728028"], ["updated_at", "2014-04-22 23:24:48.728706"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 1]] 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_0013_must undelete if authorized and deleted ---------------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.733540"], ["updated_at", "2014-04-22 23:24:48.733540"]] [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", "2014-04-22 23:24:48.734611"], ["updated_at", "2014-04-22 23:24:48.734611"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.735630"], ["updated_at", "2014-04-22 23:24:48.735630"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.737231"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.737231"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.737915"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.738736"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [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", 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' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", "2014-04-22 23:24:48.743428"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.744996"], ["updated_at", "2014-04-22 23:24:48.744996"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.746379"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.746379"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", "2014-04-22 23:24:48.747019"], ["updated_at", "2014-04-22 23:24:48.747737"]] [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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", "2014-04-22 23:24:48.750557"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.751689"], ["editor_id", 1], ["updated_at", "2014-04-22 23:24:48.752418"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[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", "2014-04-22 23:24:48.755085"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 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_0014_won't upvote unless authorized ------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.757561"], ["updated_at", "2014-04-22 23:24:48.757561"]] [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", "2014-04-22 23:24:48.758646"], ["updated_at", "2014-04-22 23:24:48.758646"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.759612"], ["updated_at", "2014-04-22 23:24:48.759612"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.761053"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.761053"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#upvote 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]] [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"]] 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.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 1ms (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.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.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.771685"], ["updated_at", "2014-04-22 23:24:48.771685"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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 [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.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote 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", "2014-04-22 23:24:48.777605"], ["updated_at", "2014-04-22 23:24:48.777605"]] [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", "2014-04-22 23:24:48.778881"], ["updated_at", "2014-04-22 23:24:48.778881"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.779899"], ["updated_at", "2014-04-22 23:24:48.779899"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.781666"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.781666"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.782547"], ["updated_at", "2014-04-22 23:24:48.782547"]] [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.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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.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", "2014-04-22 23:24:48.790900"], ["updated_at", "2014-04-22 23:24:48.790900"], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", "t"], ["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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms) [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"]] 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[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[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* 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' 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[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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [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" = 2 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" = 2 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 "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.803844"], ["vote_flag", "f"]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1[0m [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[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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"."voter_id" = 2 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" = 2 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 "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1[0m [["updated_at", "2014-04-22 23:24:48.809103"], ["vote_flag", "t"]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) [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_0016_won't downvote 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", "2014-04-22 23:24:48.814375"], ["updated_at", "2014-04-22 23:24:48.814375"]] [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", "2014-04-22 23:24:48.815566"], ["updated_at", "2014-04-22 23:24:48.815566"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.816486"], ["updated_at", "2014-04-22 23:24:48.816486"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.818089"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.818089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#downvote 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]] [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"]] 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [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 [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[35mSQL (0.0ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.825865"], ["updated_at", "2014-04-22 23:24:48.825865"]] [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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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 [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_0017_must downvote if authorized ---------------------------------------------------------------------- [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", "2014-04-22 23:24:48.831212"], ["updated_at", "2014-04-22 23:24:48.831212"]] [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", "2014-04-22 23:24:48.832316"], ["updated_at", "2014-04-22 23:24:48.832316"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.833257"], ["updated_at", "2014-04-22 23:24:48.833257"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.834821"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.834821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.835687"], ["updated_at", "2014-04-22 23:24:48.835687"]] [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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[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", "2014-04-22 23:24:48.839693"], ["updated_at", "2014-04-22 23:24:48.839693"], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", "f"], ["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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [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"]] 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[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[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* 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' 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[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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) [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" = 2 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" = 2 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.0ms)[0m UPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.852134"], ["vote_flag", "t"]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1[0m [1m[35m (0.2ms)[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[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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"."voter_id" = 2 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" = 2 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.0ms)[0m [1mUPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1[0m [["updated_at", "2014-04-22 23:24:48.858607"], ["vote_flag", "f"]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) [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_0018_won't unvote 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", "2014-04-22 23:24:48.864200"], ["updated_at", "2014-04-22 23:24:48.864200"]] [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", "2014-04-22 23:24:48.865517"], ["updated_at", "2014-04-22 23:24:48.865517"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.866473"], ["updated_at", "2014-04-22 23:24:48.866473"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.868125"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.868125"]] [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" = 1 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", "2014-04-22 23:24:48.870295"], ["updated_at", "2014-04-22 23:24:48.870295"], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", "t"], ["vote_weight", 0], ["voter_id", 1], ["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_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1[0m [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[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1[0m Processing by Commontator::CommentsController#unvote 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]] [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"]] 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] Completed 403 Forbidden in 1ms (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 [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[35mSQL (0.0ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.878608"], ["updated_at", "2014-04-22 23:24:48.878608"]] [1m[36m (0.0ms)[0m [1mRELEASE 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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 [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_0019_must unvote if authorized -------------------------------------------------------------------- [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", "2014-04-22 23:24:48.884216"], ["updated_at", "2014-04-22 23:24:48.884216"]] [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", "2014-04-22 23:24:48.885303"], ["updated_at", "2014-04-22 23:24:48.885303"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.886258"], ["updated_at", "2014-04-22 23:24:48.886258"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.892775"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.892775"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.893769"], ["updated_at", "2014-04-22 23:24:48.893769"]] [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"."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", "2014-04-22 23:24:48.895699"], ["updated_at", "2014-04-22 23:24:48.895699"], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", "t"], ["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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[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[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* 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' [["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", 1]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1[0m [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[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 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/1 Completed 302 Found in 7ms (ActiveRecord: 0.8ms) [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"]] 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" = ? LIMIT 1 [["id", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[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"]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) [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" = 2 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", "2014-04-22 23:24:48.912524"], ["updated_at", "2014-04-22 23:24:48.912524"], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", "f"], ["vote_weight", 0], ["voter_id", 2], ["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_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1[0m [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[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 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" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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"."voter_id" = 2 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" = 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.0ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 2]] [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_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]] [1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1 [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[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 [1m[36m (0.0ms)[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/1 Completed 302 Found in 5ms (ActiveRecord: 0.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.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_0020_won't send mail if recipients 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", "2014-04-22 23:24:48.923049"], ["updated_at", "2014-04-22 23:24:48.923049"]] [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", "2014-04-22 23:24:48.924213"], ["updated_at", "2014-04-22 23:24:48.924213"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.925142"], ["updated_at", "2014-04-22 23:24:48.925142"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.926685"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.926685"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.927643"], ["updated_at", "2014-04-22 23:24:48.927643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.930892"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.930892"]] [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", 1]] Redirected to http://test.host/commontator/threads/1 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_0021_must send mail if recipients not empty --------------------------------------------------------------------------------- [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", "2014-04-22 23:24:48.933907"], ["updated_at", "2014-04-22 23:24:48.933907"]] [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", "2014-04-22 23:24:48.934945"], ["updated_at", "2014-04-22 23:24:48.934945"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.935851"], ["updated_at", "2014-04-22 23:24:48.935851"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.937340"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.937340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.938185"], ["updated_at", "2014-04-22 23:24:48.938185"]] [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" = 1 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" = 1 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", "2014-04-22 23:24:48.943734"], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.943734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:48.947734"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.947734"]] [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", 1]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.952168"], ["updated_at", "2014-04-22 23:24:48.952168"]] [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", "2014-04-22 23:24:48.953241"], ["updated_at", "2014-04-22 23:24:48.953241"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.954183"], ["updated_at", "2014-04-22 23:24:48.954183"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.959970"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.959970"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/1 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.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.964426"], ["updated_at", "2014-04-22 23:24:48.964426"]] [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", "2014-04-22 23:24:48.965570"], ["updated_at", "2014-04-22 23:24:48.965570"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.966519"], ["updated_at", "2014-04-22 23:24:48.966519"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.969848"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.969848"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.975491"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.975491"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.980090"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.980090"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] [1m[35m (0.5ms)[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.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:48.983165"], ["updated_at", "2014-04-22 23:24:48.983165"]] [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", "2014-04-22 23:24:48.984250"], ["updated_at", "2014-04-22 23:24:48.984250"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.985171"], ["updated_at", "2014-04-22 23:24:48.985171"]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.987360"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.987360"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/1 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_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", "2014-04-22 23:24:48.995640"], ["updated_at", "2014-04-22 23:24:48.995640"]] [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", "2014-04-22 23:24:48.996775"], ["updated_at", "2014-04-22 23:24:48.996775"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:48.997698"], ["updated_at", "2014-04-22 23:24:48.997698"]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:48.999801"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.999801"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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/1 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:49.005672"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.005672"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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/1 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:49.010552"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.010552"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["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", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ---------------------------------------------------------------------- [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", "2014-04-22 23:24:49.016080"], ["updated_at", "2014-04-22 23:24:49.016080"]] [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", "2014-04-22 23:24:49.017172"], ["updated_at", "2014-04-22 23:24:49.017172"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.018091"], ["updated_at", "2014-04-22 23:24:49.018091"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized ----------------------------------------------------------------- [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", "2014-04-22 23:24:49.023357"], ["updated_at", "2014-04-22 23:24:49.023357"]] [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", "2014-04-22 23:24:49.024400"], ["updated_at", "2014-04-22 23:24:49.024400"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.025356"], ["updated_at", "2014-04-22 23:24:49.025356"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1[0m [["commontable_id", 1], ["commontable_type", "DummyModel"]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/1 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/1 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open -------------------------------------------------------------------------------- [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", "2014-04-22 23:24:49.038686"], ["updated_at", "2014-04-22 23:24:49.038686"]] [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", "2014-04-22 23:24:49.039826"], ["updated_at", "2014-04-22 23:24:49.039826"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.040753"], ["updated_at", "2014-04-22 23:24:49.040753"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} 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", 1]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] 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", 1]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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", 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" = 1 AND "commontator_threads"."id" != 1 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" = 1[0m [["closed_at", "2014-04-22 23:24:49.045307"], ["updated_at", "2014-04-22 23:24:49.046027"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open --------------------------------------------------------------------------- [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", "2014-04-22 23:24:49.050110"], ["updated_at", "2014-04-22 23:24:49.050110"]] [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", "2014-04-22 23:24:49.052144"], ["updated_at", "2014-04-22 23:24:49.052144"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.053783"], ["updated_at", "2014-04-22 23:24:49.053783"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.057050"], ["closer_id", 1], ["closer_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:49.058154"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) [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" = 1 AND "commontator_threads"."id" != 1 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" = 1 [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.061073"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.062939"], ["updated_at", "2014-04-22 23:24:49.063745"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless 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", "2014-04-22 23:24:49.066988"], ["updated_at", "2014-04-22 23:24:49.066988"]] [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", "2014-04-22 23:24:49.068919"], ["updated_at", "2014-04-22 23:24:49.068919"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.070419"], ["updated_at", "2014-04-22 23:24:49.070419"]] [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" = 1 AND "commontator_threads"."id" != 1 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" = 1[0m [["closed_at", "2014-04-22 23:24:49.071369"], ["updated_at", "2014-04-22 23:24:49.072407"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} 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", 1]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] 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", 1]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] 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", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1[0m [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.079694"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if 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", "2014-04-22 23:24:49.083407"], ["updated_at", "2014-04-22 23:24:49.083407"]] [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", "2014-04-22 23:24:49.084617"], ["updated_at", "2014-04-22 23:24:49.084617"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.085666"], ["updated_at", "2014-04-22 23:24:49.085666"]] [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.086228"], ["updated_at", "2014-04-22 23:24:49.086992"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.090639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.092017"], ["updated_at", "2014-04-22 23:24:49.092731"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [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" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.0ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.094986"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc -------------------------------------------------------------------- [1m[35m (0.0ms)[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.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.107598"], ["updated_at", "2014-04-22 23:24:49.107598"]] [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", "2014-04-22 23:24:49.109018"], ["updated_at", "2014-04-22 23:24:49.109018"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.110021"], ["updated_at", "2014-04-22 23:24:49.110021"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.110898"], ["updated_at", "2014-04-22 23:24:49.110898"]] [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" = 1 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:49.113193"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.113193"]] [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" = 1 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" = 1 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", "2014-04-22 23:24:49.115085"], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.115085"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.116618"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.116618"]] [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", 1]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (2.1ms) Commontator::SubscriptionsMailer#comment_created: processed outbound mail in 17.7ms Sent mail to Undisclosed Recipients (6.9ms) Date: Tue, 22 Apr 2014 18:24:49 -0500 From: no-reply@dummy.com to: Undisclosed Recipients Message-ID: <5356fa41229ee_de53fecad42dbf8170aa@Dantes-MacBook-Pro.local.mail> Subject: Dummy User #1 posted a comment on DummyModel #1 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bitSomething
Click here to view all comments on DummyModel #1.
[1m[36m (1.8ms)[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", "2014-04-22 23:24:49.150955"], ["updated_at", "2014-04-22 23:24:49.150955"]] [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", "2014-04-22 23:24:49.152367"], ["updated_at", "2014-04-22 23:24:49.152367"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.153446"], ["updated_at", "2014-04-22 23:24:49.153446"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.0ms)[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.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.158150"], ["updated_at", "2014-04-22 23:24:49.158150"]] [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", "2014-04-22 23:24:49.159320"], ["updated_at", "2014-04-22 23:24:49.159320"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.160236"], ["updated_at", "2014-04-22 23:24:49.160236"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.161971"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.161971"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:49.163410"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[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", "2014-04-22 23:24:49.166905"], ["updated_at", "2014-04-22 23:24:49.166905"]] [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", "2014-04-22 23:24:49.168760"], ["updated_at", "2014-04-22 23:24:49.168760"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.170367"], ["updated_at", "2014-04-22 23:24:49.170367"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.173048"], ["updated_at", "2014-04-22 23:24:49.173048"]] [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", "2014-04-22 23:24:49.173791"], ["creator_id", 1], ["creator_type", "DummyUser"], ["deleted_at", "2014-04-22 23:24:49.171646"], ["editor_id", 2], ["editor_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.173791"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.175896"]] [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.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.177976"], ["updated_at", "2014-04-22 23:24:49.177976"]] [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", "2014-04-22 23:24:49.179853"], ["updated_at", "2014-04-22 23:24:49.179853"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.181449"], ["updated_at", "2014-04-22 23:24:49.181449"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.183841"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.183841"]] [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", "2014-04-22 23:24:49.186571"], ["updated_at", "2014-04-22 23:24:49.186571"]] [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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.188569"]] [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::Subscription: test_0001_must count unread comments --------------------------------------------------------------- [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", "2014-04-22 23:24:49.191531"], ["updated_at", "2014-04-22 23:24:49.191531"]] [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", "2014-04-22 23:24:49.192647"], ["updated_at", "2014-04-22 23:24:49.192647"]] [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 "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.193627"], ["updated_at", "2014-04-22 23:24:49.193627"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) 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", "2014-04-22 23:24:49.195323"], ["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.195323"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.195323') [["thread_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' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.198529"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.198529"]] [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"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.195323') [["thread_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" = 1 AND "commontator_comments"."thread_id" = 1) 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", "2014-04-22 23:24:49.202030"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.202030"]] [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"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.195323') [["thread_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "updated_at" = '2014-04-22 23:24:49.204414' WHERE "commontator_subscriptions"."id" = 1 [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"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.204414')[0m [["thread_id", 1]] [1m[35m (0.5ms)[0m rollback 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", "2014-04-22 23:24:49.208206"], ["updated_at", "2014-04-22 23:24:49.208206"]] [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", "2014-04-22 23:24:49.210518"], ["updated_at", "2014-04-22 23:24:49.210518"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.212685"], ["updated_at", "2014-04-22 23:24:49.212685"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", nil]] [1m[35mSQL (0.2ms)[0m UPDATE "commontator_threads" SET "commontable_id" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["commontable_id", nil], ["updated_at", "2014-04-22 23:24:49.215101"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.217222"], ["updated_at", "2014-04-22 23:24:49.217222"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.218923"], ["updated_at", "2014-04-22 23:24:49.218923"]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[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", "2014-04-22 23:24:49.220408"], ["updated_at", "2014-04-22 23:24:49.220408"]] [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[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" = 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", "2014-04-22 23:24:49.223222"], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", "2014-04-22 23:24:49.223222"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.224863"], ["updated_at", "2014-04-22 23:24:49.224863"]] [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", 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" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) 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", "2014-04-22 23:24:49.227571"], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", "2014-04-22 23:24:49.227571"]] [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", 2], ["subscriber_type", "DummyUser"]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] [1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? 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", 3], ["subscriber_type", "DummyUser"]] [1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.231572"], ["updated_at", "2014-04-22 23:24:49.231572"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.233233"], ["updated_at", "2014-04-22 23:24:49.233233"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[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", "2014-04-22 23:24:49.234836"], ["updated_at", "2014-04-22 23:24:49.234836"]] [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" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", "2014-04-22 23:24:49.236084"], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:49.237088"]] [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" = 3 AND "commontator_threads"."id" != 3 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" = 3 [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.240013"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.241552"], ["updated_at", "2014-04-22 23:24:49.241552"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.243308"], ["updated_at", "2014-04-22 23:24:49.243308"]] [1m[36m (5.5ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [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", "2014-04-22 23:24:49.249680"], ["updated_at", "2014-04-22 23:24:49.249680"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.251318"], ["updated_at", "2014-04-22 23:24:49.251318"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.252956"], ["updated_at", "2014-04-22 23:24:49.252956"]] [1m[35m (5.8ms)[0m commit transaction [1m[36m (0.1ms)[0m [1mbegin transaction[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", "2014-04-22 23:24:49.259968"], ["updated_at", "2014-04-22 23:24:49.259968"]] [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" = 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.2ms)[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", "2014-04-22 23:24:49.264336"], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", "2014-04-22 23:24:49.264336"]] [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::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.264336') [["thread_id", 5]] [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" = 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", "2014-04-22 23:24:49.270026"], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", "2014-04-22 23:24:49.270026"]] [1m[35m (3.3ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.264336') [["thread_id", 5]] [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.2ms)[0m [1mUPDATE "commontator_subscriptions" SET "updated_at" = '2014-04-22 23:24:49.277190' WHERE "commontator_subscriptions"."id" = 3[0m [1m[35m (0.6ms)[0m commit transaction [1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] [1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.277190') [["thread_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", "2014-04-22 23:24:49.280841"], ["updated_at", "2014-04-22 23:24:49.280841"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.282714"], ["updated_at", "2014-04-22 23:24:49.282714"]] [1m[35m (0.7ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[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", "2014-04-22 23:24:49.284294"], ["updated_at", "2014-04-22 23:24:49.284294"]] [1m[36m (3.1ms)[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" = 7 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", "2014-04-22 23:24:49.289157"], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", "2014-04-22 23:24:49.289157"]] [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" = 7 AND "commontator_comments"."thread_id" = 6) 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", "2014-04-22 23:24:49.291430"], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", "2014-04-22 23:24:49.291430"]] [1m[36m (3.2ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.296326"], ["updated_at", "2014-04-22 23:24:49.296326"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.297968"], ["updated_at", "2014-04-22 23:24:49.297968"]] [1m[35m (0.6ms)[0m commit transaction [1m[36m (0.0ms)[0m [1mbegin transaction[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", "2014-04-22 23:24:49.299453"], ["updated_at", "2014-04-22 23:24:49.299453"]] [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" = 7) 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", "2014-04-22 23:24:49.301837"], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", "2014-04-22 23:24:49.301837"]] [1m[36m (3.1ms)[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" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", "2014-04-22 23:24:49.305659"], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:49.306410"]] [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" = 4 LIMIT 1 [["thread_id", 7]] [1m[36mDummyModel Load (0.0ms)[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" = ? LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] [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" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7[0m [["commontable_id", nil], ["commontable_type", nil], ["updated_at", "2014-04-22 23:24:49.310418"]] [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.0ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.311442"], ["updated_at", "2014-04-22 23:24:49.311442"]] [1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] [1m[36m (3.1ms)[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" = 4 LIMIT 1 [["thread_id", 7]] [1m[36mDummyModel Load (0.0ms)[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" = ? LIMIT 1 [["commontable_id", 7], ["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" = 4 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", "2014-04-22 23:24:49.317739"], ["updated_at", "2014-04-22 23:24:49.317739"]] [1m[35m (6.4ms)[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", "2014-04-22 23:24:49.325556"], ["updated_at", "2014-04-22 23:24:49.325556"]] [1m[36m (5.8ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [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", "2014-04-22 23:24:49.332396"], ["updated_at", "2014-04-22 23:24:49.332396"]] [1m[35m (3.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" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 9], ["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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) 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", "2014-04-22 23:24:49.337884"], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", "2014-04-22 23:24:49.337884"]] [1m[36m (3.2ms)[0m [1mcommit transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-04-22 23:24:49.341981"], ["updated_at", "2014-04-22 23:24:49.341981"]] [1m[35m (5.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" = 9 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" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) 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", "2014-04-22 23:24:49.349720"], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", "2014-04-22 23:24:49.349720"]] [1m[36m (3.9ms)[0m [1mcommit transaction[0m [1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] [1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 9]] [1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 10]] [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.356899"], ["updated_at", "2014-04-22 23:24:49.356899"]] [1m[36m (5.9ms)[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", "2014-04-22 23:24:49.364684"], ["updated_at", "2014-04-22 23:24:49.364684"]] [1m[35m (5.7ms)[0m commit transaction [1m[36m (0.0ms)[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", "2014-04-22 23:24:49.377684"], ["updated_at", "2014-04-22 23:24:49.377684"]] [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_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.378859"], ["updated_at", "2014-04-22 23:24:49.378859"]] [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" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 10]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (15.0ms) [1m[35m (0.4ms)[0m rollback transaction